Enum zstd_safe::ResetDirective
source · pub enum ResetDirective {
SessionOnly,
Parameters,
SessionAndParameters,
}
Expand description
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 RefUnwindSafe for ResetDirective
impl Send for ResetDirective
impl Sync for ResetDirective
impl Unpin for ResetDirective
impl UnwindSafe for ResetDirective
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more