pub struct MtrSession {
pub target: String,
pub target_addr: IpAddr,
pub hops: Vec<HopStats>,
pub args: Args,
pub resolver: TokioAsyncResolver,
pub packet_id: u16,
pub next_sequence: u16,
pub sequence_table: HashMap<u16, SequenceEntry>,
pub batch_at: usize,
pub num_hosts: usize,
pub update_callback: Option<UpdateCallback>,
}Fields§
§target: String§target_addr: IpAddr§hops: Vec<HopStats>§args: Args§resolver: TokioAsyncResolver§packet_id: u16§next_sequence: u16§sequence_table: HashMap<u16, SequenceEntry>§batch_at: usize§num_hosts: usize§update_callback: Option<UpdateCallback>Implementations§
Source§impl MtrSession
impl MtrSession
Trait Implementations§
Source§impl Clone for MtrSession
impl Clone for MtrSession
Source§fn clone(&self) -> MtrSession
fn clone(&self) -> MtrSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MtrSession
impl !RefUnwindSafe for MtrSession
impl Send for MtrSession
impl Sync for MtrSession
impl Unpin for MtrSession
impl UnsafeUnpin for MtrSession
impl !UnwindSafe for MtrSession
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