Enum sndfile::OpenOptions
source · [−]pub enum OpenOptions {
ReadOnly(ReadOptions),
WriteOnly(WriteOptions),
ReadWrite(ReadOptions),
WriteRead(WriteOptions),
}
Expand description
Struct to specify options when opening a audio file.
Variants
ReadOnly(ReadOptions)
Open an audio file read only.
WriteOnly(WriteOptions)
Open an audio file write only.
In OpenOptions::from_path
function, a new file will be created if the file does not yet already exist.
ReadWrite(ReadOptions)
Open an audio file for reading and writing.
In OpenOptions::from_path
function, a SndFileError::IOError
will be returned if the file does not yet already exist.
WriteRead(WriteOptions)
Open an audio file for reading and writing.
In OpenOptions::from_path
function, a new file will be created if the file does not yet already exist.
If specified file already exists, format may differ from WriteOptions
Implementations
sourceimpl OpenOptions
impl OpenOptions
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnwindSafe for OpenOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more