pub enum InputNoteState {
Expected(ExpectedNoteState),
Unverified(UnverifiedNoteState),
Committed(CommittedNoteState),
Invalid(InvalidNoteState),
ProcessingAuthenticated(ProcessingAuthenticatedNoteState),
ProcessingUnauthenticated(ProcessingUnauthenticatedNoteState),
ConsumedAuthenticatedLocal(ConsumedAuthenticatedLocalNoteState),
ConsumedUnauthenticatedLocal(ConsumedUnauthenticatedLocalNoteState),
ConsumedExternal(ConsumedExternalNoteState),
}Expand description
The possible states of a tracked note.
Variants§
Expected(ExpectedNoteState)
Tracked by the client but without a network inclusion proof.
Unverified(UnverifiedNoteState)
The store holds the note’s inclusion proof, but it was not yet verified.
Committed(CommittedNoteState)
The store holds the note’s inclusion proof, which was verified.
Invalid(InvalidNoteState)
The store holds the note’s inclusion proof, which is invalid.
ProcessingAuthenticated(ProcessingAuthenticatedNoteState)
Authenticated note being consumed locally by the client, awaiting network confirmation.
ProcessingUnauthenticated(ProcessingUnauthenticatedNoteState)
Unauthenticated note being consumed locally by the client, awaiting network confirmation.
ConsumedAuthenticatedLocal(ConsumedAuthenticatedLocalNoteState)
Authenticated note consumed locally by the client and confirmed by the network.
ConsumedUnauthenticatedLocal(ConsumedUnauthenticatedLocalNoteState)
Unauthenticated note consumed locally by the client and confirmed by the network.
ConsumedExternal(ConsumedExternalNoteState)
Note consumed by an external account (e.g. an account not tracked by the client) and confirmed by the network.
Implementations§
Source§impl InputNoteState
impl InputNoteState
pub const STATE_EXPECTED: u8 = 0u8
pub const STATE_UNVERIFIED: u8 = 1u8
pub const STATE_COMMITTED: u8 = 2u8
pub const STATE_INVALID: u8 = 3u8
pub const STATE_PROCESSING_AUTHENTICATED: u8 = 4u8
pub const STATE_PROCESSING_UNAUTHENTICATED: u8 = 5u8
pub const STATE_CONSUMED_AUTHENTICATED_LOCAL: u8 = 6u8
pub const STATE_CONSUMED_UNAUTHENTICATED_LOCAL: u8 = 7u8
pub const STATE_CONSUMED_EXTERNAL: u8 = 8u8
Sourcepub fn discriminant(&self) -> u8
pub fn discriminant(&self) -> u8
Returns a unique identifier for each note state.
Trait Implementations§
Source§impl Clone for InputNoteState
impl Clone for InputNoteState
Source§fn clone(&self) -> InputNoteState
fn clone(&self) -> InputNoteState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InputNoteState
impl Debug for InputNoteState
Source§impl Deserializable for InputNoteState
impl Deserializable for InputNoteState
Source§fn read_from<R: ByteReader>(
source: &mut R,
) -> Result<Self, DeserializationError>
fn read_from<R: ByteReader>( source: &mut R, ) -> Result<Self, DeserializationError>
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 Display for InputNoteState
impl Display for InputNoteState
Source§impl From<CommittedNoteState> for InputNoteState
impl From<CommittedNoteState> for InputNoteState
Source§fn from(state: CommittedNoteState) -> Self
fn from(state: CommittedNoteState) -> Self
Source§impl From<ConsumedAuthenticatedLocalNoteState> for InputNoteState
impl From<ConsumedAuthenticatedLocalNoteState> for InputNoteState
Source§fn from(state: ConsumedAuthenticatedLocalNoteState) -> Self
fn from(state: ConsumedAuthenticatedLocalNoteState) -> Self
Source§impl From<ExpectedNoteState> for InputNoteState
impl From<ExpectedNoteState> for InputNoteState
Source§fn from(state: ExpectedNoteState) -> Self
fn from(state: ExpectedNoteState) -> Self
Source§impl From<InvalidNoteState> for InputNoteState
impl From<InvalidNoteState> for InputNoteState
Source§fn from(state: InvalidNoteState) -> Self
fn from(state: InvalidNoteState) -> Self
Source§impl From<ProcessingAuthenticatedNoteState> for InputNoteState
impl From<ProcessingAuthenticatedNoteState> for InputNoteState
Source§fn from(state: ProcessingAuthenticatedNoteState) -> Self
fn from(state: ProcessingAuthenticatedNoteState) -> Self
Source§impl From<ProcessingUnauthenticatedNoteState> for InputNoteState
impl From<ProcessingUnauthenticatedNoteState> for InputNoteState
Source§fn from(state: ProcessingUnauthenticatedNoteState) -> Self
fn from(state: ProcessingUnauthenticatedNoteState) -> Self
Source§impl From<UnverifiedNoteState> for InputNoteState
impl From<UnverifiedNoteState> for InputNoteState
Source§fn from(state: UnverifiedNoteState) -> Self
fn from(state: UnverifiedNoteState) -> Self
Source§impl PartialEq for InputNoteState
impl PartialEq for InputNoteState
Source§impl Serializable for InputNoteState
impl Serializable for InputNoteState
Source§fn write_into<W: ByteWriter>(&self, target: &mut W)
fn write_into<W: ByteWriter>(&self, target: &mut W)
self into bytes and writes these bytes into the target.Source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
impl StructuralPartialEq for InputNoteState
Auto Trait Implementations§
impl Freeze for InputNoteState
impl RefUnwindSafe for InputNoteState
impl Send for InputNoteState
impl Sync for InputNoteState
impl Unpin for InputNoteState
impl UnwindSafe for InputNoteState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more