pub struct MempoolTx<D: KabuDataTypes> {
pub source: String,
pub tx_hash: TxHash,
pub time: DateTime<Utc>,
pub tx: Option<D::Transaction>,
pub logs: Option<Vec<D::Log>>,
pub mined: Option<BlockNumber>,
pub failed: Option<bool>,
pub state_update: Option<D::StateUpdate>,
pub pre_state: Option<FetchState<D::StateUpdate>>,
}
Fields§
§source: String
§tx_hash: TxHash
§time: DateTime<Utc>
§tx: Option<D::Transaction>
§logs: Option<Vec<D::Log>>
§mined: Option<BlockNumber>
§failed: Option<bool>
§state_update: Option<D::StateUpdate>
§pre_state: Option<FetchState<D::StateUpdate>>
Implementations§
Source§impl MempoolTx<KabuDataTypesEthereum>
impl MempoolTx<KabuDataTypesEthereum>
pub fn new() -> MempoolTx<KabuDataTypesEthereum>
pub fn new_with_hash(tx_hash: TxHash) -> MempoolTx<KabuDataTypesEthereum>
Trait Implementations§
Auto Trait Implementations§
impl<D> Freeze for MempoolTx<D>
impl<D> RefUnwindSafe for MempoolTx<D>where
<D as KabuDataTypes>::Transaction: RefUnwindSafe,
<D as KabuDataTypes>::StateUpdate: RefUnwindSafe,
<D as KabuDataTypes>::Log: RefUnwindSafe,
impl<D> Send for MempoolTx<D>
impl<D> Sync for MempoolTx<D>
impl<D> Unpin for MempoolTx<D>where
<D as KabuDataTypes>::Transaction: Unpin,
<D as KabuDataTypes>::StateUpdate: Unpin,
<D as KabuDataTypes>::Log: Unpin,
impl<D> UnwindSafe for MempoolTx<D>where
<D as KabuDataTypes>::Transaction: UnwindSafe,
<D as KabuDataTypes>::StateUpdate: UnwindSafe,
<D as KabuDataTypes>::Log: 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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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 more§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
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.