pub struct NetworkPath {
pub id: PathId,
pub local_addr: SocketAddr,
pub remote_addr: SocketAddr,
pub state: PathState,
pub quality: PathQuality,
pub created_at: Instant,
pub last_used: Instant,
pub bytes_sent: u64,
pub bytes_received: u64,
}Expand description
Network path representing a single route to a peer
Fields§
§id: PathIdUnique identifier for this path
local_addr: SocketAddrLocal socket address for this path
remote_addr: SocketAddrRemote socket address for this path
state: PathStatePath state
quality: PathQualityQuality metrics for this path
created_at: InstantWhen this path was created
last_used: InstantWhen this path was last used
bytes_sent: u64Total bytes sent on this path
bytes_received: u64Total bytes received on this path
Trait Implementations§
Source§impl Clone for NetworkPath
impl Clone for NetworkPath
Source§fn clone(&self) -> NetworkPath
fn clone(&self) -> NetworkPath
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 NetworkPath
impl RefUnwindSafe for NetworkPath
impl Send for NetworkPath
impl Sync for NetworkPath
impl Unpin for NetworkPath
impl UnwindSafe for NetworkPath
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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,
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