pub enum EncoderState {
CanConsume,
CanProduce,
Terminated,
}
Expand description
Possible states the encoder can be in.
Variants§
CanConsume
The encoder is still able to consume bytes.
CanProduce
The encoder is still able to produce bytes.
Terminated
The encoder has reached the terminal state.
Trait Implementations§
Source§impl Clone for EncoderState
impl Clone for EncoderState
Source§fn clone(&self) -> EncoderState
fn clone(&self) -> EncoderState
Returns a copy of the value. Read more
1.0.0 · 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 EncoderState
impl Debug for EncoderState
Source§impl PartialEq for EncoderState
impl PartialEq for EncoderState
impl Copy for EncoderState
impl Eq for EncoderState
impl StructuralPartialEq for EncoderState
Auto Trait Implementations§
impl Freeze for EncoderState
impl RefUnwindSafe for EncoderState
impl Send for EncoderState
impl Sync for EncoderState
impl Unpin for EncoderState
impl UnwindSafe for EncoderState
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