Enum ResetDirective
pub enum ResetDirective
What kind of context reset should be applied.
Variants
-
SessionOnly Only the session will be reset.
All parameters will be preserved (including the dictionary). But any frame being processed will be dropped.
It can be useful to start re-using a context after an error or when an ongoing compression is no longer needed.
-
Parameters Only reset parameters (including dictionary or referenced prefix).
All parameters will be reset to default values.
This can only be done between sessions - no compression or decompression must be ongoing.
-
SessionAndParameters Reset both the session and parameters.
The result is similar to a newly created context.
Auto Trait Implementations
impl Freeze for ResetDirective
impl RefUnwindSafe for ResetDirective
impl Send for ResetDirective
impl Sync for ResetDirective
impl Unpin for ResetDirective
impl UnsafeUnpin for ResetDirective
impl UnwindSafe for ResetDirective
Blanket Implementations
impl<T> Any for ResetDirective
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ResetDirective
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ResetDirective
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ResetDirective
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for ResetDirective
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 ResetDirective
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ResetDirective
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>