pub struct TangleEvent {
pub block_number: u64,
pub block_hash: B256,
pub timestamp: u64,
pub logs: Vec<Log>,
}Expand description
Event from Tangle contracts
Fields§
§block_number: u64Block number
block_hash: B256Block hash
timestamp: u64Block timestamp
logs: Vec<Log>Logs from the block
Trait Implementations§
Source§impl Clone for TangleEvent
impl Clone for TangleEvent
Source§fn clone(&self) -> TangleEvent
fn clone(&self) -> TangleEvent
Returns a duplicate 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 TangleEvent
impl Debug for TangleEvent
Source§impl EventsClient<TangleEvent> for TangleClient
impl EventsClient<TangleEvent> for TangleClient
Source§async fn next_event(&self) -> Option<TangleEvent>
async fn next_event(&self) -> Option<TangleEvent>
Get the next event
Source§async fn latest_event(&self) -> Option<TangleEvent>
async fn latest_event(&self) -> Option<TangleEvent>
Get the latest event
Auto Trait Implementations§
impl Freeze for TangleEvent
impl RefUnwindSafe for TangleEvent
impl Send for TangleEvent
impl Sync for TangleEvent
impl Unpin for TangleEvent
impl UnsafeUnpin for TangleEvent
impl UnwindSafe for TangleEvent
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> 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