pub enum EncoderStatus {
HasMore,
Finished,
}Expand description
Indicates whether the encoder still has bytes available or it is finished.
This is returned from the Encoder::advance method to indicate whether encoding should stop
or continue.
Variants§
HasMore
The encoder has more bytes available (not yet finished).
The current_chunk method should be called to obtain them and
write them out after which advance should be called again to obtain
the next chunk (if any).
Finished
The encoding has ended, no more bytes are available.
No encoder methods (other than drop) may be called after this variant is returned.
Implementations§
Source§impl EncoderStatus
impl EncoderStatus
Trait Implementations§
Source§impl Clone for EncoderStatus
impl Clone for EncoderStatus
Source§fn clone(&self) -> EncoderStatus
fn clone(&self) -> EncoderStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncoderStatus
impl Debug for EncoderStatus
Source§impl PartialEq for EncoderStatus
impl PartialEq for EncoderStatus
Source§fn eq(&self, other: &EncoderStatus) -> bool
fn eq(&self, other: &EncoderStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EncoderStatus
impl Eq for EncoderStatus
impl StructuralPartialEq for EncoderStatus
Auto Trait Implementations§
impl Freeze for EncoderStatus
impl RefUnwindSafe for EncoderStatus
impl Send for EncoderStatus
impl Sync for EncoderStatus
impl Unpin for EncoderStatus
impl UnsafeUnpin for EncoderStatus
impl UnwindSafe for EncoderStatus
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