Struct librtraceroute::TraceRoute[][src]

pub struct TraceRoute {
    pub max_ttl: u8,
    pub max_tries: u16,
    pub begin_ttl: u8,
    pub address: IpAddr,
    pub port: u16,
    pub timeout: u64,
    pub size: usize,
    pub results_sender: Sender<HopFound>,
    pub protocol: TraceRouteProtocol,
}

This struct stores all needed data for performing route tracing task.

Fields

max_ttl: u8max_tries: u16begin_ttl: u8address: IpAddrport: u16timeout: u64size: usizeresults_sender: Sender<HopFound>protocol: TraceRouteProtocol

Implementations

impl TraceRoute[src]

This block implements TraceRoute struct.

pub fn new(
    max_ttl: Option<u8>,
    begin_ttl: Option<u8>,
    max_tries: Option<u16>,
    timeout: Option<u64>,
    port: Option<u16>,
    size: Option<usize>,
    addr: IpAddr,
    protocol: Option<TraceRouteProtocol>
) -> TraceRouteRes
[src]

Creates new TraceRoute and returns TraceRouteRes.

pub fn run_trace_route(&self)[src]

This function executes route tracing.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,