#[non_exhaustive]pub enum Flush {
None,
Sync,
Full,
Finish,
}Expand description
How far a call should go before returning.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Compress as input allows; output may lag behind input.
Sync
Write out everything so far, end on a byte boundary with an empty
stored block (00 00 FF FF). History is kept. WebSocket
permessage-deflate ends every message this way.
Full
As Sync, and forget history: later data never refers back across
this point, so a decoder can start here.
Finish
Write out everything and end the stream with a final block.
Trait Implementations§
impl Copy for Flush
impl Eq for Flush
impl StructuralPartialEq for Flush
Auto Trait Implementations§
impl Forget for Flush
impl Freeze for Flush
impl RefUnwindSafe for Flush
impl Send for Flush
impl Sync for Flush
impl Unpin for Flush
impl UnsafeUnpin for Flush
impl UnwindSafe for Flush
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