[][src]Struct atm::storage::tar_file::TarFile

pub struct TarFile<G: PathGenerator> { /* fields omitted */ }

Tar archive storage backend. Use for datasets where compression isn't necessary. For reference, a tar archive with 4096 entries will take up ~4.19MB on disk, as each entry requires a header of 512 bytes and at least 512 bytes of data.

Implementations

impl<G: PathGenerator> TarFile<G>[src]

pub fn new<P: AsRef<Path>>(
    target_path: P,
    path_generator: G
) -> Result<Self, TarArchiveError>
[src]

Create new TarFile instance

Trait Implementations

impl<G: PathGenerator> IntoInner for TarFile<G>[src]

type Inner = BufWriter<File>

Type of inner object

impl<G: PathGenerator> StorageBackend for TarFile<G>[src]

type Error = <TarArchive<BufWriter<File>, G> as StorageBackend>::Error

Error type for storage operations

Auto Trait Implementations

impl<G> RefUnwindSafe for TarFile<G> where
    G: RefUnwindSafe

impl<G> Send for TarFile<G> where
    G: Send

impl<G> Sync for TarFile<G> where
    G: Sync

impl<G> Unpin for TarFile<G> where
    G: Unpin

impl<G> UnwindSafe for TarFile<G> where
    G: 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.