pub struct PingQueryReplier { /* private fields */ }
Expand description
Helper object allowing to send a ping query as a wrapped channel combination
that can be filled up on the transport part and awaited locally by the Pinger
.
Implementations§
Source§impl PingQueryReplier
impl PingQueryReplier
pub fn new(notifier: UnboundedSender<PingQueryResult>) -> Self
Sourcepub fn notify(self, result: PingQueryResult)
pub fn notify(self, result: PingQueryResult)
Mechanism to finalize the ping operation by providing a [ControlMessage
] received by the
transport layer.
The resulting timing information about the RTT is halved to provide a unidirectional latency.
Trait Implementations§
Source§impl Clone for PingQueryReplier
impl Clone for PingQueryReplier
Source§fn clone(&self) -> PingQueryReplier
fn clone(&self) -> PingQueryReplier
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 moreAuto Trait Implementations§
impl Freeze for PingQueryReplier
impl !RefUnwindSafe for PingQueryReplier
impl Send for PingQueryReplier
impl Sync for PingQueryReplier
impl Unpin for PingQueryReplier
impl !UnwindSafe for PingQueryReplier
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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