#[repr(C)]
pub enum PmError {
PmNoError,
PmGotData,
PmHostError,
PmInvalidDeviceId,
PmInsufficientMemory,
PmBufferTooSmall,
PmBufferOverflow,
PmBadPtr,
PmBadData,
PmInternalError,
PmBufferMaxSize,
}
Variants
PmNoError
“no error” return that also indicates data available
PmGotData
“no error” return that also indicates data available
PmHostError
PmInvalidDeviceId
out of range or output device when input is requested or input device when output is requested or device is already opened
PmInsufficientMemory
PmBufferTooSmall
PmBufferOverflow
PmBadPtr
PortMidiStream parameter is NULL or stream is not opened or stream is output when input is required or stream is input when output is required
PmBadData
illegal midi data, e.g. missing EOX
PmInternalError
PmBufferMaxSize
buffer is already as large as it can be
Trait Implementations
impl Copy for PmError
impl Eq for PmError
impl StructuralEq for PmError
impl StructuralPartialEq for PmError
Auto Trait Implementations
impl RefUnwindSafe for PmError
impl Send for PmError
impl Sync for PmError
impl Unpin for PmError
impl UnwindSafe for PmError
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more