pub enum SockDiagResponse {
InetResponse(InetResponse),
UnixResponse(UnixResponse),
}Variants§
InetResponse(InetResponse)
UnixResponse(UnixResponse)
Implementations§
Source§impl SockDiagResponse
impl SockDiagResponse
pub fn message_type(&self) -> u16
Trait Implementations§
Source§impl Clone for SockDiagResponse
impl Clone for SockDiagResponse
Source§fn clone(&self) -> SockDiagResponse
fn clone(&self) -> SockDiagResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SockDiagResponse
impl Debug for SockDiagResponse
Source§impl Emitable for SockDiagResponse
impl Emitable for SockDiagResponse
Source§impl From<SockDiagResponse> for NetlinkPayload<SockDiagResponse>
impl From<SockDiagResponse> for NetlinkPayload<SockDiagResponse>
Source§fn from(message: SockDiagResponse) -> Self
fn from(message: SockDiagResponse) -> Self
Converts to this type from the input type.
Source§impl NetlinkDeserializable for SockDiagResponse
impl NetlinkDeserializable for SockDiagResponse
type Error = DecodeError
Source§fn deserialize(
header: &NetlinkHeader,
payload: &[u8],
) -> Result<Self, Self::Error>
fn deserialize( header: &NetlinkHeader, payload: &[u8], ) -> Result<Self, Self::Error>
Deserialize the given buffer into
Self.Source§impl NetlinkSerializable for SockDiagResponse
impl NetlinkSerializable for SockDiagResponse
fn message_type(&self) -> u16
Source§fn buffer_len(&self) -> usize
fn buffer_len(&self) -> usize
Return the length of the serialized data. Read more
Source§fn serialize(&self, buffer: &mut [u8])
fn serialize(&self, buffer: &mut [u8])
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 moreSource§impl<'a, T: AsRef<[u8]>> ParseableParametrized<SockDiagBuffer<&'a T>, u16> for SockDiagResponse
impl<'a, T: AsRef<[u8]>> ParseableParametrized<SockDiagBuffer<&'a T>, u16> for SockDiagResponse
type Error = DecodeError
Source§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.
Source§impl PartialEq for SockDiagResponse
impl PartialEq for SockDiagResponse
impl Eq for SockDiagResponse
impl StructuralPartialEq for SockDiagResponse
Auto Trait Implementations§
impl Freeze for SockDiagResponse
impl RefUnwindSafe for SockDiagResponse
impl Send for SockDiagResponse
impl Sync for SockDiagResponse
impl Unpin for SockDiagResponse
impl UnwindSafe for SockDiagResponse
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