pub struct MetaEvent<C: Cidomap> { /* private fields */ }Expand description
Information about an event like the time it was created, where in the blockchain it was created the block it came from and information about the trigger that matched it
Implementations§
Source§impl<C: Cidomap> MetaEvent<C>
impl<C: Cidomap> MetaEvent<C>
pub fn new( trigger: <C::Network as Network>::Trigger, timestamp: DateTime<Utc>, trigger_processing_order: u8, order: <C::Network as Network>::EventOrder, block: Arc<<C::Network as Network>::FullBlock>, ) -> Self
Sourcepub fn trigger(&self) -> &<C::Network as Network>::Trigger
pub fn trigger(&self) -> &<C::Network as Network>::Trigger
Returns the trigger that matched this event
Sourcepub fn block_number(&self) -> <C::Network as Network>::BlockNumber
pub fn block_number(&self) -> <C::Network as Network>::BlockNumber
Returns the block number of this event
Sourcepub fn event_order(&self) -> <C::Network as Network>::EventOrder
pub fn event_order(&self) -> <C::Network as Network>::EventOrder
Returns the event order of this event
Auto Trait Implementations§
impl<C> Freeze for MetaEvent<C>
impl<C> RefUnwindSafe for MetaEvent<C>where
<<C as Cidomap>::Network as Network>::Trigger: RefUnwindSafe,
<<C as Cidomap>::Network as Network>::EventOrder: RefUnwindSafe,
<<C as Cidomap>::Network as Network>::FullBlock: RefUnwindSafe,
impl<C> Send for MetaEvent<C>
impl<C> Sync for MetaEvent<C>
impl<C> Unpin for MetaEvent<C>
impl<C> UnwindSafe for MetaEvent<C>where
<<C as Cidomap>::Network as Network>::Trigger: UnwindSafe,
<<C as Cidomap>::Network as Network>::EventOrder: UnwindSafe,
<<C as Cidomap>::Network as Network>::FullBlock: RefUnwindSafe,
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> 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> 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