Enum brotli2::raw::CompressOp [−][src]
#[repr(isize)]pub enum CompressOp { Process, Flush, Finish, EmitMetadata, }
Possible choices for the operation performed by the compressor.
When using any operation except Process
, you must not alter the
input buffer or use a different operation until the current operation
has 'completed'. An operation may need to be repeated with more space to
write data until it can complete.
Variants
Process
Compress input data
Flush
Compress input data, ensuring that all input so far has been written out
Finish
Compress input data, ensuring that all input so far has been written out and then finalizing the stream so no more data can be written
EmitMetadata
Emit a metadata block to the stream, an opaque piece of out-of-band data that does not interfere with the main stream of data. Metadata blocks must be no longer than 16MiB
Trait Implementations
impl Copy for CompressOp
[src]
impl Copy for CompressOp
impl Clone for CompressOp
[src]
impl Clone for CompressOp
fn clone(&self) -> CompressOp
[src]
fn clone(&self) -> CompressOp
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for CompressOp
[src]
impl Debug for CompressOp
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for CompressOp
[src]
impl PartialEq for CompressOp
fn eq(&self, other: &CompressOp) -> bool
[src]
fn eq(&self, other: &CompressOp) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for CompressOp
[src]
impl Eq for CompressOp
Auto Trait Implementations
impl Send for CompressOp
impl Send for CompressOp
impl Sync for CompressOp
impl Sync for CompressOp