[−][src]Struct atm::storage::TarArchive
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]
W: Write,
G: PathGenerator,
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]
W: Write,
G: PathGenerator,
impl<W, G> StorageBackend for TarArchive<W, G> where
W: Write,
G: PathGenerator,
[src]
W: Write,
G: PathGenerator,
type Error = TarArchiveError
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<W, G> RefUnwindSafe for TarArchive<W, G> where
G: RefUnwindSafe,
W: RefUnwindSafe,
G: RefUnwindSafe,
W: RefUnwindSafe,
impl<W, G> Send for TarArchive<W, G> where
G: Send,
W: Send,
G: Send,
W: Send,
impl<W, G> Sync for TarArchive<W, G> where
G: Sync,
W: Sync,
G: Sync,
W: Sync,
impl<W, G> Unpin for TarArchive<W, G> where
G: Unpin,
W: Unpin,
G: Unpin,
W: Unpin,
impl<W, G> UnwindSafe for TarArchive<W, G> where
G: UnwindSafe,
W: UnwindSafe,
G: UnwindSafe,
W: 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>,