pub enum GenericMessage {
Ctrl(GenlMessage<GenlCtrl>),
Other {
family: u16,
payload: Vec<u8>,
},
}Variants§
Ctrl(GenlMessage<GenlCtrl>)
The default supported Netlink Control protocol.
Other
Any other Netlink protocol. Netlink family servers should perform their own parsing on the given payload, likely also using GenlMessage/GenlFamily.
Trait Implementations§
Source§impl Clone for GenericMessage
impl Clone for GenericMessage
Source§fn clone(&self) -> GenericMessage
fn clone(&self) -> GenericMessage
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 GenericMessage
impl Debug for GenericMessage
Source§impl NetlinkDeserializable for GenericMessage
impl NetlinkDeserializable for GenericMessage
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 GenericMessage
impl NetlinkSerializable for GenericMessage
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 moreAuto Trait Implementations§
impl Freeze for GenericMessage
impl RefUnwindSafe for GenericMessage
impl Send for GenericMessage
impl Sync for GenericMessage
impl Unpin for GenericMessage
impl UnwindSafe for GenericMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.