sigil-node · crucible_durable
Source declarations, signatures and documentation for crucible_durable.
Source: sigil/node/sigil-node/src/crucible_durable.rs. SHA-256: 28befa64cbd7be221ec79115df3ac49558f0d55d04bb1ecfd616369a6dec2eeb.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
crucible_durable::CrucibleEvent
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CrucibleEvent {
pub block_height: u64,
pub seq: u64,
pub run_id: String,
pub kind: String,
pub payload: serde_json::Value
}Source line: 37.
crucible_durable::CrucibleBatchOp
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum CrucibleBatchOp {
PutRun(TrainingRun),
PutRolloutBatch(RolloutBatchCommitment),
PutRewardAttestation(RewardBatchAttestation),
PutWeights(WeightPublicationRecord),
PutSlash(TrainingSlashRecord),
AppendEvent(CrucibleEvent),
PutBalance(String, u64),
}Source line: 46.
crucible_durable::CrucibleWriteBatch
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct CrucibleWriteBatch {
}Source line: 57.
crucible_durable::CrucibleWriteBatch::new
pub fn new() -> Self;Source line: 62.
crucible_durable::CrucibleWriteBatch::put_run
pub fn put_run(&mut self, run: TrainingRun);Source line: 66.
crucible_durable::CrucibleWriteBatch::put_rollout_batch
pub fn put_rollout_batch(&mut self, batch: RolloutBatchCommitment);Source line: 70.
crucible_durable::CrucibleWriteBatch::put_reward_attestation
pub fn put_reward_attestation(&mut self, attestation: RewardBatchAttestation);Source line: 74.
crucible_durable::CrucibleWriteBatch::put_weights
pub fn put_weights(&mut self, weights: WeightPublicationRecord);Source line: 79.
crucible_durable::CrucibleWriteBatch::put_slash
pub fn put_slash(&mut self, slash: TrainingSlashRecord);Source line: 83.
crucible_durable::CrucibleWriteBatch::append_event
pub fn append_event(&mut self, event: CrucibleEvent);Source line: 87.
crucible_durable::CrucibleWriteBatch::put_balance
pub fn put_balance(&mut self, did: impl Into<String>, amount: u64);Source line: 91.
crucible_durable::CrucibleWriteBatch::ops
pub fn ops(&self) -> &[CrucibleBatchOp];Source line: 96.
crucible_durable::DurableCrucibleStore
pub struct DurableCrucibleStore {
}Source line: 177.
crucible_durable::DurableCrucibleStore::open
pub fn open(path: &Path) -> Result<Self, NodeError>;Source line: 183.
crucible_durable::DurableCrucibleStore::put_run
pub fn put_run(&self, run: &TrainingRun) -> Result<(), NodeError>;Source line: 251.
crucible_durable::DurableCrucibleStore::get_run
pub fn get_run(&self, run_id: &str) -> Result<Option<TrainingRun>, NodeError>;Source line: 255.
crucible_durable::DurableCrucibleStore::list_runs
pub fn list_runs(&self) -> Result<Vec<TrainingRun>, NodeError>;Source line: 262.
crucible_durable::DurableCrucibleStore::get_rollout_batch
pub fn get_rollout_batch(
&self,
run_id: &str,
batch_id: &str,
) -> Result<Option<RolloutBatchCommitment>, NodeError>;Source line: 271.
crucible_durable::DurableCrucibleStore::list_rollout_batches
pub fn list_rollout_batches(
&self,
run_id: &str,
) -> Result<Vec<RolloutBatchCommitment>, NodeError>;Source line: 282.
crucible_durable::DurableCrucibleStore::get_weights
pub fn get_weights(
&self,
run_id: &str,
model_root: &SigilHash,
) -> Result<Option<WeightPublicationRecord>, NodeError>;Source line: 301.
crucible_durable::DurableCrucibleStore::list_weights
pub fn list_weights(&self, run_id: &str) -> Result<Vec<WeightPublicationRecord>, NodeError>;Source line: 312.
crucible_durable::DurableCrucibleStore::get_reward_attestation
pub fn get_reward_attestation(
&self,
run_id: &str,
attestation_id: &str,
) -> Result<Option<RewardBatchAttestation>, NodeError>;Source line: 329.
crucible_durable::DurableCrucibleStore::list_reward_attestations
pub fn list_reward_attestations(
&self,
run_id: &str,
) -> Result<Vec<RewardBatchAttestation>, NodeError>;Source line: 340.
crucible_durable::DurableCrucibleStore::get_slash
pub fn get_slash(
&self,
run_id: &str,
slash_id: &str,
) -> Result<Option<TrainingSlashRecord>, NodeError>;Source line: 357.
crucible_durable::DurableCrucibleStore::list_slashes
pub fn list_slashes(&self, run_id: &str) -> Result<Vec<TrainingSlashRecord>, NodeError>;Source line: 368.
crucible_durable::DurableCrucibleStore::list_events
pub fn list_events(&self, run_id: Option<&str>) -> Result<Vec<CrucibleEvent>, NodeError>;Source line: 382.
crucible_durable::DurableCrucibleStore::put_balance
pub fn put_balance(&self, did: &str, amount: u64) -> Result<(), NodeError>;Source line: 398.
crucible_durable::DurableCrucibleStore::get_balance
pub fn get_balance(&self, did: &str) -> Result<Option<u64>, NodeError>;Source line: 402.
crucible_durable::DurableCrucibleStore::list_balances
pub fn list_balances(&self) -> Result<Vec<(String, u64)>, NodeError>;Source line: 413.
crucible_durable::DurableCrucibleStore::commit_batch
pub fn commit_batch(&self, batch: &CrucibleWriteBatch) -> Result<(), NodeError>;Source line: 427.
crucible_durable::ArcCrucibleStore
pub type ArcCrucibleStore = Arc<DurableCrucibleStore>;Source line: 533.