pub enum SendEventError {
HostBufferFull,
NoOutputBuffer,
InvalidEvent {
midi_output_config: MidiConfig,
},
}Expand description
An error occurred while sending an event with ProcessContext::try_send_event().
Variants§
HostBufferFull
The host’s output event buffer is full.
NoOutputBuffer
The host does not have an output event buffer.
InvalidEvent
Invalid event type for the plugin’s Plugin::MIDI_OUTPUT configuration.
Fields
§
midi_output_config: MidiConfigTrait Implementations§
Source§impl Clone for SendEventError
impl Clone for SendEventError
Source§fn clone(&self) -> SendEventError
fn clone(&self) -> SendEventError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SendEventError
Source§impl Debug for SendEventError
impl Debug for SendEventError
Source§impl Display for SendEventError
impl Display for SendEventError
impl Eq for SendEventError
Source§impl Error for SendEventError
impl Error for SendEventError
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()
Source§impl PartialEq for SendEventError
impl PartialEq for SendEventError
impl StructuralPartialEq for SendEventError
Auto Trait Implementations§
impl Freeze for SendEventError
impl RefUnwindSafe for SendEventError
impl Send for SendEventError
impl Sync for SendEventError
impl Unpin for SendEventError
impl UnsafeUnpin for SendEventError
impl UnwindSafe for SendEventError
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