Enum Product Error
pub enum ProductError {
Show 22 variants
InvalidText(&'static str),
InvalidVersion,
InvalidPluginId,
InvalidStateFormat,
NoLayouts,
DuplicateLayout(AudioLayout),
EffectWithoutInput,
TooManyParameters,
InvalidKey(usize),
InvalidParameterText(usize),
InvalidDefault(usize),
DuplicateKey(usize),
InvalidId(usize),
DuplicateId {
first: usize,
second: usize,
},
InvalidBypass(usize),
InvalidIdentity(&'static str),
InvalidEditor,
InvalidEditorAsset(usize),
BypassPolicyWithoutParameter,
TooManyAuxiliaryBuses,
InvalidAuxiliaryBus(usize),
InvalidBypassPolicy,
}Expand description
Reasons a product description is rejected. Indices refer to declaration order.
Variants§
InvalidText(&'static str)
InvalidVersion
InvalidPluginId
InvalidStateFormat
NoLayouts
DuplicateLayout(AudioLayout)
EffectWithoutInput
TooManyParameters
InvalidKey(usize)
InvalidParameterText(usize)
InvalidDefault(usize)
DuplicateKey(usize)
InvalidId(usize)
DuplicateId
Two parameters share a host ID; give one an explicit ID.
InvalidBypass(usize)
InvalidIdentity(&'static str)
InvalidEditor
The editor page is empty or over 1 MiB, or its size is outside 64 to 4096.
InvalidEditorAsset(usize)
An editor asset has an invalid path or content type, repeats a path or
exceeds the size limits; or there are assets without an editor, or more
than MAXIMUM_EDITOR_ASSETS (both reported at index 0).
BypassPolicyWithoutParameter
A bypass policy other than BypassPolicy::Processor needs a
Parameter::bypass parameter.
TooManyAuxiliaryBuses
More than MAXIMUM_AUXILIARY_BUSES
auxiliary buses.
InvalidAuxiliaryBus(usize)
An auxiliary bus has no channels or more than 64 in a direction, or an invalid or repeated name.
InvalidBypassPolicy
A crossfade time is not finite or outside 0 (exclusive) to 1000 ms, or
a bypass policy other than BypassPolicy::Processor is combined with
a declared maximum latency above
MAXIMUM_BYPASS_LATENCY.
Trait Implementations§
§impl Clone for ProductError
impl Clone for ProductError
§fn clone(&self) -> ProductError
fn clone(&self) -> ProductError
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ProductError
§impl Debug for ProductError
impl Debug for ProductError
§impl Display for ProductError
impl Display for ProductError
impl Eq for ProductError
§impl Error for ProductError
impl Error for ProductError
1.30.0 · §fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · §fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()