[][src]Struct vapor_archive::read::file::File

pub struct File<'r, R: Read + Seek + 'r> { /* fields omitted */ }

Represents a single File in the archive

Implementations

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

pub fn new(
    reader: &'r mut R,
    raw_size: u64,
    data_range: Range<u64>,
    compression_type: Compression
) -> Result<File<'r, R>>
[src]

Creates a new File

Given a reference to the underyling reader, a data range and the compression type

pub fn with_metadata(self, metadata_ref: &Metadata) -> Self[src]

...with a given raw metadata

Trait Implementations

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

Auto Trait Implementations

impl<'r, R> RefUnwindSafe for File<'r, R> where
    R: RefUnwindSafe

impl<'r, R> Send for File<'r, R> where
    R: Send

impl<'r, R> !Sync for File<'r, R>

impl<'r, R> Unpin for File<'r, R>

impl<'r, R> !UnwindSafe for File<'r, R>

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<R> ReadBytesExt for R where
    R: Read + ?Sized

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.