[][src]Trait netlink_packet_core::NetlinkDeserializable

pub trait NetlinkDeserializable<T> {
    type Error: Error + Send + Sync + 'static;
    pub fn deserialize(
        header: &NetlinkHeader,
        payload: &[u8]
    ) -> Result<T, Self::Error>; }

A NetlinkDeserializable type can be used to deserialize a buffer into the target type T for which it is implemented.

Associated Types

type Error: Error + Send + Sync + 'static[src]

Loading content...

Required methods

pub fn deserialize(
    header: &NetlinkHeader,
    payload: &[u8]
) -> Result<T, Self::Error>
[src]

Deserialize the given buffer into T.

Loading content...

Implementors

Loading content...