Skip to main content

sim_lib_midi_live/
error.rs

1use thiserror::Error;
2
3/// Errors raised when constructing live MIDI buffers.
4#[derive(Clone, Debug, Error, PartialEq, Eq)]
5pub enum LiveMidiError {
6    /// A ring buffer was requested with zero capacity.
7    #[error("ring buffer capacity must be at least 1")]
8    ZeroCapacity,
9}