pub enum DecodedFrame {
Incomplete,
Complete(Message),
}
Expand description
Return value from MessageFrameDecoder
.
Variants§
Incomplete
There wasn’t enough data in the buffer to decode a full message.
Complete(Message)
There was enough data in the buffer to decode.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DecodedFrame
impl RefUnwindSafe for DecodedFrame
impl Send for DecodedFrame
impl Sync for DecodedFrame
impl Unpin for DecodedFrame
impl UnwindSafe for DecodedFrame
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