pub trait NetlinkDeserializable: Sized {
type Error: Error + Send + Sync + 'static;
// Required method
fn deserialize(
header: &NetlinkHeader,
payload: &[u8]
) -> Result<Self, Self::Error>;
}
Expand description
A NetlinkDeserializable
type can be deserialized from a buffer
Required Associated Types§
Required Methods§
sourcefn 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
.