Struct yaz0::deflate::Yaz0Writer[][src]

pub struct Yaz0Writer<'a, W: 'a> where
    W: Write
{ /* fields omitted */ }

Implementations

impl<'a, W> Yaz0Writer<'a, W> where
    W: Write
[src]

pub fn new(writer: &'a mut W) -> Yaz0Writer<'_, W> where
    W: Write
[src]

pub fn compress_and_write(
    self,
    data: &[u8],
    level: CompressionLevel
) -> Result<(), Error>
[src]

Compress and write the passed data, at compression level level.

pub fn compress_and_write_with_progress(
    self,
    data: &[u8],
    level: CompressionLevel,
    progress_tx: Sender<ProgressMsg>
) -> Result<(), Error>
[src]

Compress and write the passed data, at compression level level. Progress updates are streamed out of progress_tx.

Auto Trait Implementations

impl<'a, W> RefUnwindSafe for Yaz0Writer<'a, W> where
    W: RefUnwindSafe
[src]

impl<'a, W> Send for Yaz0Writer<'a, W> where
    W: Send
[src]

impl<'a, W> Sync for Yaz0Writer<'a, W> where
    W: Sync
[src]

impl<'a, W> Unpin for Yaz0Writer<'a, W>[src]

impl<'a, W> !UnwindSafe for Yaz0Writer<'a, W>[src]

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.