Struct yaz0::deflate::Yaz0Writer [−][src]
Implementations
impl<'a, W> Yaz0Writer<'a, W> where
W: Write,
[src]
W: Write,
pub fn new(writer: &'a mut W) -> Yaz0Writer<'_, W> where
W: Write,
[src]
W: Write,
pub fn compress_and_write(
self,
data: &[u8],
level: CompressionLevel
) -> Result<(), Error>
[src]
self,
data: &[u8],
level: CompressionLevel
) -> Result<(), Error>
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]
self,
data: &[u8],
level: CompressionLevel,
progress_tx: Sender<ProgressMsg>
) -> Result<(), Error>
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]
W: RefUnwindSafe,
impl<'a, W> Send for Yaz0Writer<'a, W> where
W: Send,
[src]
W: Send,
impl<'a, W> Sync for Yaz0Writer<'a, W> where
W: Sync,
[src]
W: Sync,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,