pub enum SinkResult {
Accept,
Pause,
}Expand description
Outcome of delivering one chunk to a ChunkSink.
Variants§
Accept
The chunk was consumed and draining may continue.
Pause
The consumer’s bounded queue is full. The stream pauses; the chunk is retained and re-delivered when the consumer resumes the stream. Bytes are never dropped on this path.
Trait Implementations§
Source§impl Clone for SinkResult
impl Clone for SinkResult
Source§fn clone(&self) -> SinkResult
fn clone(&self) -> SinkResult
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 moreimpl Copy for SinkResult
Source§impl Debug for SinkResult
impl Debug for SinkResult
impl Eq for SinkResult
Source§impl PartialEq for SinkResult
impl PartialEq for SinkResult
impl StructuralPartialEq for SinkResult
Auto Trait Implementations§
impl Freeze for SinkResult
impl RefUnwindSafe for SinkResult
impl Send for SinkResult
impl Sync for SinkResult
impl Unpin for SinkResult
impl UnsafeUnpin for SinkResult
impl UnwindSafe for SinkResult
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