pub struct NackFrame;Expand description
A negative acknowledgement frame.
Implementations§
Source§impl NackFrame
impl NackFrame
Sourcepub fn decode(bytes: &[u8]) -> Result<Self, NackFrameError>
pub fn decode(bytes: &[u8]) -> Result<Self, NackFrameError>
Decodes exactly one negative acknowledgement frame.
Sourcepub fn encode_into<'a>(
&self,
output: &'a mut [u8],
) -> Result<&'a [u8], NackFrameError>
pub fn encode_into<'a>( &self, output: &'a mut [u8], ) -> Result<&'a [u8], NackFrameError>
Encodes the frame into output and returns the encoded portion.
Trait Implementations§
impl Copy for NackFrame
impl Eq for NackFrame
impl StructuralPartialEq for NackFrame
Auto Trait Implementations§
impl Freeze for NackFrame
impl RefUnwindSafe for NackFrame
impl Send for NackFrame
impl Sync for NackFrame
impl Unpin for NackFrame
impl UnsafeUnpin for NackFrame
impl UnwindSafe for NackFrame
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