pub enum FeedResult<'input, 'buf> {
Consumed,
OverFull(&'input mut [u8]),
DecodeError(&'input mut [u8]),
Success {
data: &'buf [u8],
remaining: &'input mut [u8],
},
SuccessInput {
data: &'input [u8],
remaining: &'input mut [u8],
},
}Expand description
The result of feeding the accumulator.
Variants§
Consumed
Consumed all data, still pending.
OverFull(&'input mut [u8])
Buffer was filled. Contains remaining section of input, if any.
DecodeError(&'input mut [u8])
Reached end of chunk, but cobs decode failed. Contains remaining section of input, if any.
Success
We decoded a message successfully. The data is currently stored in our storage buffer.
Fields
SuccessInput
We decoded a message successfully. The data is currently stored in the passed-in input buffer
Trait Implementations§
Auto Trait Implementations§
impl<'input, 'buf> Freeze for FeedResult<'input, 'buf>
impl<'input, 'buf> RefUnwindSafe for FeedResult<'input, 'buf>
impl<'input, 'buf> Send for FeedResult<'input, 'buf>
impl<'input, 'buf> Sync for FeedResult<'input, 'buf>
impl<'input, 'buf> Unpin for FeedResult<'input, 'buf>
impl<'input, 'buf> !UnwindSafe for FeedResult<'input, 'buf>
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