[][src]Struct atm::storage::tar_gz_file::TarGzFile

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

Gzip-compressed tar archive storage backend. Use for larger datasets where smaller output file is desired (i.e., for sharing via email or messaging apps). Realized compression ratio will depend on the compression_level used, as well as the compressibility of the input data.

Implementations

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

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

Create new TarGzFile instance. If no compression level specified, uses default compression level as implemented in flate2::Compression.

Trait Implementations

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

type Inner = GzEncoder<BufWriter<File>>

Type of inner object

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

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

Error type for storage operations

Auto Trait Implementations

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

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

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

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

impl<G> UnwindSafe for TarGzFile<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.