[][src]Struct vapor_archive::read::archive::Archive

pub struct Archive<R: Read + Seek> { /* fields omitted */ }

The Archive struct

Implementations

impl<'r, R: Read + Seek + 'r> Archive<R>[src]

pub fn new(source: R) -> Result<Self>[src]

Creates a new archive, wrapping the given source

pub fn get_file_list(&self) -> Vec<String>[src]

Lists all files

pub fn get_file(&'r mut self, path: &str) -> Result<File<'r, R>>[src]

Gets a File stream by path

pub fn get_file_info(&mut self, path: &str) -> Result<FileInfo>[src]

Gets a files info by path

Auto Trait Implementations

impl<R> RefUnwindSafe for Archive<R> where
    R: RefUnwindSafe

impl<R> Send for Archive<R> where
    R: Send

impl<R> Sync for Archive<R> where
    R: Sync

impl<R> Unpin for Archive<R> where
    R: Unpin

impl<R> UnwindSafe for Archive<R> where
    R: UnwindSafe

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

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.