Enum netlink_packet_sock_diag::inet::nlas::Nla[][src]

pub enum Nla {
    LegacyMemInfo(LegacyMemInfo),
    TcpInfo(Vec<u8>),
    Congestion(String),
    Tos(u8),
    Tc(u8),
    MemInfo(MemInfo),
    Shutdown(u8),
    Protocol(u8),
    SkV6Only(bool),
    Mark(u32),
    ClassId(u32),
    Other(DefaultNla),
}

Variants

LegacyMemInfo(LegacyMemInfo)

Tuple Fields

The memory information of the socket. This attribute is similar to Nla::MemInfo but provides less information. On recent kernels, Nla::MemInfo is used instead.

TcpInfo(Vec<u8>)

Tuple Fields

0: Vec<u8>

the TCP information

Congestion(String)

Tuple Fields

0: String

the congestion control algorithm used

Tos(u8)

Tuple Fields

0: u8

the TOS of the socket.

Tc(u8)

Tuple Fields

0: u8

the traffic class of the socket.

MemInfo(MemInfo)

Tuple Fields

The memory information of the socket

Shutdown(u8)

Tuple Fields

0: u8

Shutown state: one of SHUT_RD, SHUT_WR or SHUT_RDWR

Protocol(u8)

Tuple Fields

0: u8

The protocol

SkV6Only(bool)

Tuple Fields

0: bool

Whether the socket is IPv6 only

Mark(u32)

Tuple Fields

0: u32

The mark of the socket.

ClassId(u32)

Tuple Fields

0: u32

The class ID of the socket.

Other(DefaultNla)

Tuple Fields

other attribute

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize the current type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Return the length of the serialized data.

Serialize this types and write the serialized data into the given buffer. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.