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

pub struct File<'w, W: Write + Seek + 'w> { /* fields omitted */ }

File

Represents a File stream within the archive. This wraps the internal writer within several layers of supported encryption/decryption.

Implementations

impl<'w, W: Write + Seek + 'w> File<'w, W>[src]

pub fn new(
    writer: &'w mut W,
    directory: &'w mut Directory,
    filename: &str,
    compression_type: Compression,
    _encryption_type: Encryption
) -> Result<Self>
[src]

Creates a new File Writer

Wraps a writer and creates a new file with the given parameters

pub fn finish(self)[src]

Drops the File Writer early, writing the header

Trait Implementations

impl<'w, W: Write + Seek + 'w> Drop for File<'w, W>[src]

impl<'w, W: Write + Seek + 'w> Write for File<'w, W>[src]

Auto Trait Implementations

impl<'w, W> RefUnwindSafe for File<'w, W> where
    W: RefUnwindSafe

impl<'w, W> Send for File<'w, W> where
    W: Send

impl<'w, W> !Sync for File<'w, W>

impl<'w, W> Unpin for File<'w, W>

impl<'w, W> !UnwindSafe for File<'w, W>

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.

impl<W> WriteBytesExt for W where
    W: Write + ?Sized