#[non_exhaustive]pub enum StateError {
Mismatch,
Invalid,
}Expand description
Why a processor, a crate::ProcessorChain or an
crate::AudioGraph refuses a saved state. A refused state changes
nothing: what refuses it is left as it was.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Mismatch
The state does not fit: saved by another kind of processor, by one prepared otherwise (another rate, lookahead or layout, so its history has another length), by a chain of other nodes, or cut short.
Invalid
The state fits but holds what the processor never keeps: a cursor past its history, or a value that is not finite.
Trait Implementations§
Source§impl Clone for StateError
impl Clone for StateError
impl Copy for StateError
Source§impl Debug for StateError
impl Debug for StateError
Source§impl Display for StateError
impl Display for StateError
impl Eq for StateError
Source§impl Error for StateError
impl Error for StateError
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 StateError
impl PartialEq for StateError
impl StructuralPartialEq for StateError
Auto Trait Implementations§
impl Freeze for StateError
impl RefUnwindSafe for StateError
impl Send for StateError
impl Sync for StateError
impl Unpin for StateError
impl UnsafeUnpin for StateError
impl UnwindSafe for StateError
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