Enum Action
pub enum Action
Possible actions to take on compression.
Variants
-
Run = { _ } Normal compression.
-
Flush = { _ } Flush any existing output, but do not read any more input
-
Finish = { _ } Request that the compression stream be finalized.
Trait Implementations
impl Clone for Action
fn clone(&self) -> Self
impl Copy for Action
impl Debug for Action
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Action
impl PartialEq for Action
fn eq(&self, other: &Self) -> bool
impl StructuralPartialEq for Action
Auto Trait Implementations
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
Blanket Implementations
impl<T> Any for Action
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Action
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Action
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Action
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Action
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Action
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Action
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Action
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Action
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>