[−][src]Struct atm::storage::tar_gz_file::TarGzFile
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]
target_path: P,
path_generator: G,
compression_level: Option<Compression>
) -> Result<Self>
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
fn into_inner(self) -> Result<Self::Inner, Self::Error>
[src]
impl<G: PathGenerator> StorageBackend for TarGzFile<G>
[src]
type Error = <TarArchive<GzEncoder<BufWriter<File>>, G> as StorageBackend>::Error
Error type for storage operations
fn append_file(
&mut self,
mfile: MIDIFile,
mode: Option<u32>
) -> Result<(), Self::Error>
[src]
&mut self,
mfile: MIDIFile,
mode: Option<u32>
) -> Result<(), Self::Error>
fn finish(&mut self) -> Result<(), Self::Error>
[src]
fn append_melody(
&mut self,
melody: MIDINoteVec,
mode: Option<u32>
) -> Result<(), Self::Error>
[src]
&mut self,
melody: MIDINoteVec,
mode: Option<u32>
) -> Result<(), Self::Error>
Auto Trait Implementations
impl<G> RefUnwindSafe for TarGzFile<G> where
G: RefUnwindSafe,
G: RefUnwindSafe,
impl<G> Send for TarGzFile<G> where
G: Send,
G: Send,
impl<G> Sync for TarGzFile<G> where
G: Sync,
G: Sync,
impl<G> Unpin for TarGzFile<G> where
G: Unpin,
G: Unpin,
impl<G> UnwindSafe for TarGzFile<G> where
G: UnwindSafe,
G: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,