Enum miden_client::store::NoteStatus
source · pub enum NoteStatus {
Expected {
created_at: u64,
},
Committed {
block_height: u64,
},
Processing {
consumer_account_id: AccountId,
submitted_at: u64,
},
Consumed {
consumer_account_id: Option<AccountId>,
block_height: u64,
},
}Variants§
Expected
Note is expected to be commited on chain.
Fields
Committed
Note has been commited on chain.
Processing
Note has been consumed locally but not yet nullified on chain.
Fields
Consumed
Note has been nullified on chain.
Trait Implementations§
source§impl Clone for NoteStatus
impl Clone for NoteStatus
source§fn clone(&self) -> NoteStatus
fn clone(&self) -> NoteStatus
Returns a copy 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 moresource§impl Debug for NoteStatus
impl Debug for NoteStatus
source§impl Deserializable for NoteStatus
impl Deserializable for NoteStatus
source§fn read_from<R: ByteReader>(
source: &mut R,
) -> Result<Self, DeserializationError>
fn read_from<R: ByteReader>( source: &mut R, ) -> Result<Self, DeserializationError>
Reads a sequence of bytes from the provided
source, attempts to deserialize these bytes
into Self, and returns the result. Read moresource§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
source§impl<'de> Deserialize<'de> for NoteStatus
impl<'de> Deserialize<'de> for NoteStatus
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 Display for NoteStatus
impl Display for NoteStatus
source§impl PartialEq for NoteStatus
impl PartialEq for NoteStatus
source§fn eq(&self, other: &NoteStatus) -> bool
fn eq(&self, other: &NoteStatus) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serializable for NoteStatus
impl Serializable for NoteStatus
source§fn write_into<W: ByteWriter>(&self, target: &mut W)
fn write_into<W: ByteWriter>(&self, target: &mut W)
Serializes
self into bytes and writes these bytes into the target.source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self. Read more
source§impl Serialize for NoteStatus
impl Serialize for NoteStatus
impl Copy for NoteStatus
impl Eq for NoteStatus
impl StructuralPartialEq for NoteStatus
Auto Trait Implementations§
impl Freeze for NoteStatus
impl RefUnwindSafe for NoteStatus
impl Send for NoteStatus
impl Sync for NoteStatus
impl Unpin for NoteStatus
impl UnwindSafe for NoteStatus
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)