[][src]Struct detect_compression::DetectWriter

pub struct DetectWriter { /* fields omitted */ }

The Write type writes to compressed or uncompressed file.

This writer detects compression algorithms from file name extension.

You must finalize this writer.

Methods

impl DetectWriter[src]

pub fn create<P: AsRef<Path>>(path: P, level: Level) -> Result<DetectWriter>[src]

Create compressed or uncompressed file.

pub fn create_with_wrapper<P: AsRef<Path>, B: WriteWrapperBuilder>(
    path: P,
    level: Level,
    builder: B
) -> Result<DetectWriter>
[src]

Create compressed or uncompressed file using wrapper type.

InnerWriteWrapper is the wrapepr type's trait handles compressed byte stream. For example, the size-accumulating wrapper enables you to calculate size of compressed output.

pub fn finalize(self) -> Result<()>[src]

Finalize this writer.

Some encodings requires finalization.

Trait Implementations

impl Drop for DetectWriter[src]

impl Write for DetectWriter[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.