pub enum TxState<Id> {
Fluff,
Stem {
from: Id,
},
Local,
}
Expand description
The routing state of a transaction.
Variants§
Fluff
Fluff state.
Stem
Stem state.
Fields
§
from: Id
The peer who sent us this transaction’s Id.
Local
Local - the transaction originated from our node.
Implementations§
Source§impl<Id> TxState<Id>
impl<Id> TxState<Id>
Sourcepub const fn is_stem_stage(&self) -> bool
pub const fn is_stem_stage(&self) -> bool
Returns true
if the tx is in the stem stage.
TxState::Local
& TxState::Stem
are the 2 stem stage states.
Trait Implementations§
impl<Id: Eq> Eq for TxState<Id>
impl<Id> StructuralPartialEq for TxState<Id>
Auto Trait Implementations§
impl<Id> Freeze for TxState<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for TxState<Id>where
Id: RefUnwindSafe,
impl<Id> Send for TxState<Id>where
Id: Send,
impl<Id> Sync for TxState<Id>where
Id: Sync,
impl<Id> Unpin for TxState<Id>where
Id: Unpin,
impl<Id> UnwindSafe for TxState<Id>where
Id: UnwindSafe,
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§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> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.