pub enum OplError {
BufferUndersized,
BufferMismatch,
RegisterOutOfRange,
MutexLockFailed,
}
Expand description
The OplError
enum represents errors that can occur when using the opl3-rs
library.
Variants§
BufferUndersized
The buffer slice provided was too small to contain the generated samples.
BufferMismatch
The buffer slices provided to generate_4ch_stream were not equal in length.
RegisterOutOfRange
The specified register number is out of range.
MutexLockFailed
Failed to lock the mutex for the OPL3 device.
Trait Implementations§
Source§impl Error for OplError
impl Error for OplError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for OplError
impl RefUnwindSafe for OplError
impl Send for OplError
impl Sync for OplError
impl Unpin for OplError
impl UnwindSafe for OplError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more