pub enum StreamingState {
Idle,
Streaming {
bytes_sent: usize,
chunks_sent: usize,
},
Complete,
Error(String),
}Expand description
Streaming state for encoder
Variants§
Idle
No stream active
Streaming
Stream in progress
Complete
Stream completed successfully
Error(String)
Stream failed with error
Trait Implementations§
Source§impl Clone for StreamingState
impl Clone for StreamingState
Source§fn clone(&self) -> StreamingState
fn clone(&self) -> StreamingState
Returns a duplicate 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 StreamingState
impl Debug for StreamingState
Source§impl PartialEq for StreamingState
impl PartialEq for StreamingState
impl Eq for StreamingState
impl StructuralPartialEq for StreamingState
Auto Trait Implementations§
impl Freeze for StreamingState
impl RefUnwindSafe for StreamingState
impl Send for StreamingState
impl Sync for StreamingState
impl Unpin for StreamingState
impl UnwindSafe for StreamingState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.