Struct netlink_proto::NetlinkCodec
source · pub struct NetlinkCodec { /* private fields */ }
Expand description
Standard implementation of NetlinkMessageCodec
Trait Implementations§
source§impl NetlinkMessageCodec for NetlinkCodec
impl NetlinkMessageCodec for NetlinkCodec
source§fn decode<T>(src: &mut BytesMut) -> Result<Option<NetlinkMessage<T>>>where
T: NetlinkDeserializable + Debug,
fn decode<T>(src: &mut BytesMut) -> Result<Option<NetlinkMessage<T>>>where
T: NetlinkDeserializable + Debug,
Decode message of given type from datagram payload Read more
source§fn encode<T>(msg: NetlinkMessage<T>, buf: &mut BytesMut) -> Result<()>where
T: Debug + NetlinkSerializable,
fn encode<T>(msg: NetlinkMessage<T>, buf: &mut BytesMut) -> Result<()>where
T: Debug + NetlinkSerializable,
Encode message to (datagram) buffer