enum DecoderState {
Header {
buf: [u8; 4],
read: u8,
continuation: bool,
},
Message {
size: u32,
},
Body {
message: MessageBuffer,
},
Finished,
}
Variants§
Header
Decoding the message header
Fields
Message
Decoding the message flatbuffer
Body
Decoding the message body
Fields
§
message: MessageBuffer
The message flatbuffer
Finished
Reached the end of the stream
Trait Implementations§
Source§impl Debug for DecoderState
impl Debug for DecoderState
Auto Trait Implementations§
impl Freeze for DecoderState
impl RefUnwindSafe for DecoderState
impl Send for DecoderState
impl Sync for DecoderState
impl Unpin for DecoderState
impl UnwindSafe for DecoderState
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