Type Alias TcpCountersWithoutSocket

Source
pub type TcpCountersWithoutSocket<I> = IpMarked<I, TcpCountersWithoutSocketInner>;
Expand description

Counters for TCP events that cannot be attributed to an individual socket.

These counters are tracked stack wide.

Note on dual stack sockets: These counters are tracked for WireI.

Aliased Type§

struct TcpCountersWithoutSocket<I> { /* private fields */ }

Implementations

Source§

impl<I, T> IpMarked<I, T>
where I: Ip,

Source

pub fn new(inner: T) -> IpMarked<I, T>

Constructs a new IpMarked from the provided T.

Source

pub fn into_inner(self) -> T

Consumes the IpMarked and returns the contained T by value.

Source

pub fn get(&self) -> &T

Gets an immutable reference to the underlying T.

Source

pub fn get_mut(&mut self) -> &mut T

Gets an mutable reference to the underlying T.

Trait Implementations

Source§

impl<I, T> AsMut<T> for IpMarked<I, T>
where I: Ip,

Source§

fn as_mut(&mut self) -> &mut T

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<I, T> AsRef<T> for IpMarked<I, T>
where I: Ip,

Source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<I, T> Debug for IpMarked<I, T>
where I: Debug + Ip, T: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<I, T> Default for IpMarked<I, T>
where I: Default + Ip, T: Default,

Source§

fn default() -> IpMarked<I, T>

Returns the “default value” for a type. Read more
Source§

impl<I, T> Deref for IpMarked<I, T>
where I: Ip,

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<IpMarked<I, T> as Deref>::Target

Dereferences the value.
Source§

impl<I, T> DerefMut for IpMarked<I, T>
where I: Ip,

Source§

fn deref_mut(&mut self) -> &mut <IpMarked<I, T> as Deref>::Target

Mutably dereferences the value.
Source§

impl<I, T, IpType> GenericOverIp<IpType> for IpMarked<I, T>
where I: Ip, IpType: Ip,

Source§

type Type = IpMarked<IpType, T>

The type of Self when its IP-generic parameter is replaced with the type NewIp.
Source§

impl<I, T> Hash for IpMarked<I, T>
where I: Hash + Ip, T: Hash,

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<I, T> Ord for IpMarked<I, T>
where I: Ord + Ip, T: Ord,

Source§

fn cmp(&self, other: &IpMarked<I, T>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<I, T> PartialEq for IpMarked<I, T>
where I: PartialEq + Ip, T: PartialEq,

Source§

fn eq(&self, other: &IpMarked<I, T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<I, T> PartialOrd for IpMarked<I, T>
where I: PartialOrd + Ip, T: PartialOrd,

Source§

fn partial_cmp(&self, other: &IpMarked<I, T>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<I, T> Eq for IpMarked<I, T>
where I: Eq + Ip, T: Eq,

Source§

impl<I, T> StructuralPartialEq for IpMarked<I, T>
where I: Ip,