Enum netlink_packet_sock_diag::message::SockDiagMessage [−][src]
pub enum SockDiagMessage {
InetRequest(InetRequest),
InetResponse(Box<InetResponse>),
UnixRequest(UnixRequest),
UnixResponse(Box<UnixResponse>),
}
Variants
InetRequest(InetRequest)
Tuple Fields
0: InetRequest
InetResponse(Box<InetResponse>)
Tuple Fields
0: Box<InetResponse>
UnixRequest(UnixRequest)
Tuple Fields
0: UnixRequest
UnixResponse(Box<UnixResponse>)
Tuple Fields
0: Box<UnixResponse>
Implementations
Trait Implementations
Performs the conversion.
type Error = DecodeError
Deserialize the given buffer into Self
.
Return the length of the serialized data. Read more
Serialize this types and write the serialized data into the given buffer.
buffer
’s length is exactly InnerMessage::buffer_len()
.
It means that if InnerMessage::buffer_len()
is buggy and does not return the appropriate length,
bad things can happen: Read more
fn parse_with_param(
buf: &SockDiagBuffer<&'a T>,
message_type: u16
) -> Result<Self, DecodeError>
fn parse_with_param(
buf: &SockDiagBuffer<&'a T>,
message_type: u16
) -> Result<Self, DecodeError>
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
impl RefUnwindSafe for SockDiagMessage
impl Send for SockDiagMessage
impl Sync for SockDiagMessage
impl Unpin for SockDiagMessage
impl UnwindSafe for SockDiagMessage
Blanket Implementations
Mutably borrows from an owned value. Read more