#[non_exhaustive]pub enum InputError {
Show 41 variants
AudioSlotCount,
AudioBusCount,
AudioChannelCount,
DuplicateAudioBus {
id: u64,
},
AudioBusLayout {
id: u64,
},
AudioRoute {
slot: usize,
bus: u64,
},
ChannelAdaptation {
source: Layout,
target: Layout,
},
AudioBuffers,
AudioSampleFormat,
StateSize,
StateBytes,
ParameterChoicePage,
PresetSize,
Transport,
Automation,
NotAutomatable {
id: u64,
},
HostIdentity,
PresetDiscoveryTarget,
EmptyChain,
SampleRate,
BlockSize,
OutputCount,
MainBus,
Slot,
ParameterValue,
ParameterText,
PlainParameterValue,
UnknownParameter {
id: u64,
},
ReadOnlyParameter {
id: u64,
},
EventCapacity,
EventPortCount,
DuplicateEventPort {
id: u64,
},
EventRoute {
slot: usize,
port: u64,
},
EventPort {
port: usize,
},
Events,
PathEncoding,
RealtimeQuantum,
RealtimeLatency,
RealtimeDry,
RemoteRegion,
RemoteEditor,
}Expand description
A request rejected before changing the plugin or its processing configuration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AudioSlotCount
Routing entries do not match the number of loaded plugin slots.
AudioBusCount
A direction exceeds MAX_AUDIO_BUSES.
AudioChannelCount
A direction exceeds MAX_AUDIO_CHANNELS active channels.
DuplicateAudioBus
A native bus ID occurs more than once in one direction.
AudioBusLayout
An active bus requested the empty layout.
AudioRoute
An active input bus names a missing or inactive source.
ChannelAdaptation
The requested conversion does not match the two layouts.
Fields
AudioBuffers
Channel counts or per-channel frame lengths do not match the prepared buses, or a block has more frames than the prepared maximum block size.
AudioSampleFormat
Sample precision differs from the prepared configuration.
StateSize
Aggregate component and controller state exceeds MAX_STATE_BYTES.
StateBytes
Bytes given to PluginState::from_bytes are not a state that plughost wrote, or are one
of a later format version.
ParameterChoicePage
A discrete-choice page has an invalid start index or count.
PresetSize
Native preset bytes exceed MAX_PRESET_BYTES.
Transport
Transport contains a non-finite, unrepresentable, or inconsistent value.
Automation
Automation is unordered, out of range, outside the block, or names a missing slot.
NotAutomatable
The addressed parameter does not support sample-timed automation.
HostIdentity
Host text contains NUL, or its name is empty or exceeds 127 UTF-16 code units.
PresetDiscoveryTarget
A preset discovery provider ID is empty, contains NUL or exceeds
PRESET_DISCOVERY_TEXT_BYTES, or its file location
is not an absolute Unicode path within that size and without NUL.
EmptyChain
A chain was created or configured without a plugin.
SampleRate
The sample rate is not finite and greater than zero.
BlockSize
Maximum block size is outside 1..=i32::MAX.
OutputCount
The legacy configuration does not provide one output layout per plugin.
MainBus
The plugin has no main audio bus with the requested layout.
Slot
The slot index does not address a loaded plugin.
ParameterValue
The parameter value is not finite and normalized to 0..=1.
ParameterText
Display text is excessive, contains NUL, or is rejected by the plugin.
PlainParameterValue
The native-unit parameter value is non-finite or outside the native range.
UnknownParameter
The requested parameter ID does not exist.
ReadOnlyParameter
A host edit addressed a read-only parameter.
EventCapacity
Combined automation/events or SysEx bytes exceed the per-block capacity.
EventPortCount
An event routing direction exceeds MAX_EVENT_PORTS.
DuplicateEventPort
An output port ID occurs more than once in a slot.
EventRoute
An event input route names an unavailable source.
Fields
EventPort
An event names an external port the chain does not expose.
Events
Events that are not valid, in offset order, or inside the block, or for a render before the end of its input.
PathEncoding
A bundle or preset path cannot be represented by the helper’s Unicode path protocol.
RealtimeQuantum
A realtime quantum is zero frames or exceeds the prepared maximum block size.
RealtimeLatency
A realtime latency is not one, two or three quanta.
RealtimeDry
A dry fallback needs as many output channels as input channels.
RemoteRegion
No remote editor region was set, or the one given does not have a finite position and a positive size within an existing display.
RemoteEditor
The slot has no open remote editor.
Trait Implementations§
Source§impl Clone for InputError
impl Clone for InputError
impl Copy for InputError
Source§impl Debug for InputError
impl Debug for InputError
Source§impl Display for InputError
impl Display for InputError
impl Eq for InputError
Source§impl Error for InputError
impl Error for InputError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()