[−][src]Struct atm::storage::tar_file::TarFile
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]
target_path: P,
path_generator: G
) -> Result<Self, TarArchiveError>
Create new TarFile
instance
Trait Implementations
impl<G: PathGenerator> IntoInner for TarFile<G>
[src]
type Inner = BufWriter<File>
Type of inner object
fn into_inner(self) -> Result<Self::Inner, Self::Error>
[src]
impl<G: PathGenerator> StorageBackend for TarFile<G>
[src]
type Error = <TarArchive<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 TarFile<G> where
G: RefUnwindSafe,
G: RefUnwindSafe,
impl<G> Send for TarFile<G> where
G: Send,
G: Send,
impl<G> Sync for TarFile<G> where
G: Sync,
G: Sync,
impl<G> Unpin for TarFile<G> where
G: Unpin,
G: Unpin,
impl<G> UnwindSafe for TarFile<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>,