pub struct CommitState(pub CommitHash, pub CommitProof);
Expand description
Commit state combines the last commit hash with a commit proof.
Tuple Fields§
§0: CommitHash
§1: CommitProof
Trait Implementations§
Source§impl Clone for CommitState
impl Clone for CommitState
Source§fn clone(&self) -> CommitState
fn clone(&self) -> CommitState
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CommitState
impl Debug for CommitState
Source§impl Decodable for CommitState
impl Decodable for CommitState
Source§impl Default for CommitState
impl Default for CommitState
Source§fn default() -> CommitState
fn default() -> CommitState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommitState
impl<'de> Deserialize<'de> for CommitState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encodable for CommitState
impl Encodable for CommitState
Source§fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Encode self into the binary writer.
Source§impl PartialEq for CommitState
impl PartialEq for CommitState
Source§impl Serialize for CommitState
impl Serialize for CommitState
impl Eq for CommitState
impl StructuralPartialEq for CommitState
Auto Trait Implementations§
impl Freeze for CommitState
impl RefUnwindSafe for CommitState
impl Send for CommitState
impl Sync for CommitState
impl Unpin for CommitState
impl UnwindSafe for CommitState
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