Enum stream_zipper::File [−][src]
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)
Implementations
impl File
[src]
pub fn name(&self) -> Option<&[u8]>
[src]
pub fn get_output(&self) -> &[u8]ⓘ
[src]
pub fn read_headers<'i>(
&mut self,
input: &'i [u8]
) -> Result<ReadHeadersResult<'i>, Error>
[src]
&mut self,
input: &'i [u8]
) -> Result<ReadHeadersResult<'i>, Error>
pub fn read_internal_iter<'i>(
&mut self,
input: &'i [u8],
callback: impl FnMut(&[u8])
) -> Result<State<'i, 'i, File>, Error>
[src]
&mut self,
input: &'i [u8],
callback: impl FnMut(&[u8])
) -> Result<State<'i, 'i, File>, Error>
pub fn read<'i, 's>(
&'s mut self,
input: &'i [u8]
) -> Result<State<'i, 's, File>, Error>
[src]
&'s mut self,
input: &'i [u8]
) -> Result<State<'i, 's, File>, Error>
Trait Implementations
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]
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>,