Struct netlink_proto::NetlinkCodec
source · [−]pub struct NetlinkCodec { /* private fields */ }
Expand description
Standard implementation of NetlinkMessageCodec
Trait Implementations
sourceimpl NetlinkMessageCodec for NetlinkCodec
impl NetlinkMessageCodec for NetlinkCodec
sourcefn 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
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more