pub struct CommitStore { /* private fields */ }Implementations§
Source§impl CommitStore
impl CommitStore
pub fn new(objects: ObjectStore) -> Self
pub fn create_commit( &self, parents: Vec<CommitHash>, state_root: StateRoot, manifests: Vec<Hash>, author: String, message: String, ) -> Result<CommitHash>
pub fn create_signed_commit<S: CommitSigner>( &self, signer: &S, parents: Vec<CommitHash>, state_root: StateRoot, manifests: Vec<Hash>, author: String, message: String, ) -> Result<CommitHash>
pub fn get_commit(&self, hash: CommitHash) -> Result<Commit>
pub fn verify_commit_with<V: CommitVerifier>( &self, hash: CommitHash, verifier: &V, ) -> Result<()>
Trait Implementations§
Source§impl Clone for CommitStore
impl Clone for CommitStore
Source§fn clone(&self) -> CommitStore
fn clone(&self) -> CommitStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommitStore
impl RefUnwindSafe for CommitStore
impl Send for CommitStore
impl Sync for CommitStore
impl Unpin for CommitStore
impl UnsafeUnpin for CommitStore
impl UnwindSafe for CommitStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more