pub enum Poll {
More(usize),
Empty(usize),
}Expand description
Outcome of a successful encoder::HeatshrinkEncoder::poll or
decoder::HeatshrinkDecoder::poll call.
Variants§
More(usize)
Output buffer is full; more compressed/decompressed data is available. Value is the number of bytes written into the output buffer.
Empty(usize)
Internal state is fully drained for now. Value is the number of bytes written into the output buffer.
Implementations§
Trait Implementations§
impl Eq for Poll
impl StructuralPartialEq for Poll
Auto Trait Implementations§
impl Freeze for Poll
impl RefUnwindSafe for Poll
impl Send for Poll
impl Sync for Poll
impl Unpin for Poll
impl UnsafeUnpin for Poll
impl UnwindSafe for Poll
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