Enum stream_zipper::File[][src]

pub enum File {
    Zip(ZipFile),
    GZip(GZipFile),
    Init(Vec<u8>),
}

Corresponds to a zipped or gzipped file/stream. Can be in one of three states: not-yet-detected type, a zip file or a gzip file.

Variants

Zip(ZipFile)
GZip(GZipFile)
Init(Vec<u8>)

Implementations

impl File[src]

pub fn name(&self) -> Option<&[u8]>[src]

pub fn get_output(&self) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

pub fn read_headers<'i>(
    &mut self,
    input: &'i [u8]
) -> Result<ReadHeadersResult<'i>, Error>
[src]

pub fn read_internal_iter<'i>(
    &mut self,
    input: &'i [u8],
    callback: impl FnMut(&[u8])
) -> Result<State<'i, 'i, File>, Error>
[src]

pub fn read<'i, 's>(
    &'s mut self,
    input: &'i [u8]
) -> Result<State<'i, 's, File>, Error>
[src]

Trait Implementations

impl From<GZipFile> for File[src]

impl From<ZipFile> for File[src]

Auto Trait Implementations

impl RefUnwindSafe for File

impl Send for File

impl Sync for File

impl Unpin for File

impl UnwindSafe for File

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.