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
Auto Trait Implementations§
impl RefUnwindSafe for NetlinkCodec
impl Send for NetlinkCodec
impl Sync for NetlinkCodec
impl Unpin for NetlinkCodec
impl UnwindSafe for NetlinkCodec
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