pub struct QueryEvent<T, D>{ /* private fields */ }Expand description
Query event
Implementations§
Source§impl<D, T> QueryEvent<T, D>
impl<D, T> QueryEvent<T, D>
Sourcepub const fn lamport_time(&self) -> LamportTime
pub const fn lamport_time(&self) -> LamportTime
Returns the lamport time of the query
Sourcepub const fn from(&self) -> &Node<T::Id, T::ResolvedAddress>
pub const fn from(&self) -> &Node<T::Id, T::ResolvedAddress>
Returns the source node of the query
Trait Implementations§
Source§impl<D, T> AsRef<QueryEvent<T, D>> for QueryEvent<T, D>
impl<D, T> AsRef<QueryEvent<T, D>> for QueryEvent<T, D>
Source§fn as_ref(&self) -> &QueryEvent<T, D>
fn as_ref(&self) -> &QueryEvent<T, D>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<D, T> Clone for QueryEvent<T, D>
impl<D, T> Clone for QueryEvent<T, D>
Source§impl<D, T> Display for QueryEvent<T, D>
impl<D, T> Display for QueryEvent<T, D>
Source§impl<T, D> From<QueryEvent<T, D>> for Event<T, D>
impl<T, D> From<QueryEvent<T, D>> for Event<T, D>
Source§fn from(value: QueryEvent<T, D>) -> Self
fn from(value: QueryEvent<T, D>) -> Self
Converts to this type from the input type.
Source§impl<D, T> PartialEq for QueryEvent<T, D>
impl<D, T> PartialEq for QueryEvent<T, D>
Auto Trait Implementations§
impl<T, D> !Freeze for QueryEvent<T, D>
impl<T, D> !RefUnwindSafe for QueryEvent<T, D>
impl<T, D> Send for QueryEvent<T, D>
impl<T, D> Sync for QueryEvent<T, D>
impl<T, D> Unpin for QueryEvent<T, D>
impl<T, D> !UnwindSafe for QueryEvent<T, D>
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