#[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§
source§impl PartialEq<PmError> for PmError
impl PartialEq<PmError> for PmError
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§
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