Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ktdlr committed Oct 22, 2024
1 parent 716a067 commit 612424f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ciphernode/data/src/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ pub trait FromSnapshotWithParams: Snapshot {
async fn from_snapshot(params: Self::Params, snapshot: Self::Snapshot) -> Result<Self>;
}


/// Enable the self type to be reconstituted from the Snapshot only
#[async_trait]
pub trait FromSnapshot: Snapshot {
/// Return an instance of the persistable object at the state given by the snapshot
Expand Down

0 comments on commit 612424f

Please sign in to comment.