[][src]Struct atm::storage::TarArchive

pub struct TarArchive<W: Write, G: PathGenerator> {
    pub state: StorageState,
    // some fields omitted
}

Tar archive storage backend. Used by other storage backends as the underlying storage object.

Fields

state: StorageState

Implementations

impl<W, G> TarArchive<W, G> where
    W: Write,
    G: PathGenerator
[src]

pub fn new(buffer: W, path_generator: G) -> Self[src]

Create new TarArchive instance

pub fn get_mut(&mut self) -> &mut W[src]

Acquires a mutable reference to the underlying writer

pub fn get_ref(&self) -> &W[src]

Acquires a reference to the underlying writer

Trait Implementations

impl<W, G> IntoInner for TarArchive<W, G> where
    W: Write,
    G: PathGenerator
[src]

type Inner = W

Type of inner object

impl<W, G> StorageBackend for TarArchive<W, G> where
    W: Write,
    G: PathGenerator
[src]

type Error = TarArchiveError

Error type for storage operations

Auto Trait Implementations

impl<W, G> RefUnwindSafe for TarArchive<W, G> where
    G: RefUnwindSafe,
    W: RefUnwindSafe

impl<W, G> Send for TarArchive<W, G> where
    G: Send,
    W: Send

impl<W, G> Sync for TarArchive<W, G> where
    G: Sync,
    W: Sync

impl<W, G> Unpin for TarArchive<W, G> where
    G: Unpin,
    W: Unpin

impl<W, G> UnwindSafe for TarArchive<W, G> where
    G: UnwindSafe,
    W: 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, 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.