[][src]Struct secret_keeper::util::Compressor

pub struct Compressor {}

Compress data read from file or in byte arrays

Implementations

impl Compressor[src]

pub fn new() -> Self[src]

impl<'comp: 'req, 'req> Compressor[src]

pub async fn from_file<'_, '_, '_>(
    &'_ self,
    fname: &'_ str,
    writer: &'_ mut BytesMut
) -> Result<(), Error>
[src]

pub fn from_buf<R>(
    &self,
    reader: &R,
    writer: &mut BytesMut
) -> Result<(), Error> where
    R: Buf + Sync + Unpin
[src]

Compress the Buf data Pass in a writer, ideally preallocated to the expected size of compressed output.

Trait Implementations

impl Debug for Compressor[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> Same<T> for T[src]

type Output = T

Should always be Self

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.