pub struct ProtocolCodec { /* private fields */ }Expand description
Protocol codec for encoding/decoding messages
Implementations§
Source§impl ProtocolCodec
impl ProtocolCodec
Sourcepub fn new(config: ProtocolConfig) -> Self
pub fn new(config: ProtocolConfig) -> Self
Create a new protocol codec
Sourcepub fn config(&self) -> &ProtocolConfig
pub fn config(&self) -> &ProtocolConfig
Get protocol configuration
Auto Trait Implementations§
impl Freeze for ProtocolCodec
impl RefUnwindSafe for ProtocolCodec
impl Send for ProtocolCodec
impl Sync for ProtocolCodec
impl Unpin for ProtocolCodec
impl UnsafeUnpin for ProtocolCodec
impl UnwindSafe for ProtocolCodec
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