[−][src]Trait atm::storage::StorageBackend
Trait to implement storage backends for MIDI files generated from libatm::MIDIFile.
Associated Types
Loading content...Required methods
fn append_file(
&mut self,
mfile: MIDIFile,
mode: Option<u32>
) -> Result<(), Self::Error>
&mut self,
mfile: MIDIFile,
mode: Option<u32>
) -> Result<(), Self::Error>
Append MIDI file to storage backend
fn finish(&mut self) -> Result<(), Self::Error>
Conduct cleanup of storage backend and close for writing
NOTE: For some backends this method may be a NOOP, but should always be called after the last MIDI file has been written to disk.
Provided methods
fn append_melody(
&mut self,
melody: MIDINoteVec,
mode: Option<u32>
) -> Result<(), Self::Error>
&mut self,
melody: MIDINoteVec,
mode: Option<u32>
) -> Result<(), Self::Error>
Convert melody to MIDI file and append to storage backend
Implementors
impl StorageBackend for BatchTarFile
[src]
type Error = TarArchiveError
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]
impl<G: PathGenerator> StorageBackend for TarFile<G>
[src]
type Error = <TarArchive<BufWriter<File>, G> as StorageBackend>::Error
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]
impl<G: PathGenerator> StorageBackend for TarGzFile<G>
[src]
type Error = <TarArchive<GzEncoder<BufWriter<File>>, G> as StorageBackend>::Error
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]
impl<W, G> StorageBackend for TarArchive<W, G> where
W: Write,
G: PathGenerator,
[src]
W: Write,
G: PathGenerator,