Struct quilkin::codec::qcmp::QcmpMeasurement
source · pub struct QcmpMeasurement { /* private fields */ }
Expand description
A measurement implementation using QCMP pings for measuring the distance between nodes.
Implementations§
Trait Implementations§
source§impl Clone for QcmpMeasurement
impl Clone for QcmpMeasurement
source§fn clone(&self) -> QcmpMeasurement
fn clone(&self) -> QcmpMeasurement
Returns a copy 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 QcmpMeasurement
impl Debug for QcmpMeasurement
source§impl Measurement for QcmpMeasurement
impl Measurement for QcmpMeasurement
source§fn measure_distance<'life0, 'async_trait>(
&'life0 self,
address: SocketAddr
) -> Pin<Box<dyn Future<Output = Result<DistanceMeasure>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn measure_distance<'life0, 'async_trait>(
&'life0 self,
address: SocketAddr
) -> Pin<Box<dyn Future<Output = Result<DistanceMeasure>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Gets the difference between this node and
address
, returning the
latency in nanoseconds on success.Auto Trait Implementations§
impl RefUnwindSafe for QcmpMeasurement
impl Send for QcmpMeasurement
impl Sync for QcmpMeasurement
impl Unpin for QcmpMeasurement
impl UnwindSafe for QcmpMeasurement
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
§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 moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request