#[non_exhaustive]pub enum StateLoadError {
Malformed(&'static str),
Other(String),
}Expand description
Reason a crate::Plugin::load_state /
truce_plugin::PluginLogic::load_state implementation failed to
interpret the host-supplied extra-state blob. Format wrappers
receive this on the audio-thread apply path and log it; hosts
that surface a non-success code to the DAW (e.g. CLAP
state_load returning false) read the variant via that path.
Malformed is the typical case: the blob’s framing or content
doesn’t match what save_state would emit (version skew between
older session files and newer plugin builds is the canonical
example). Other carries a free-form message for plugin-specific
failures that don’t fit the malformed-bytes shape.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Malformed(&'static str)
State blob is too short, mis-framed, or otherwise unparseable.
Other(String)
Plugin-specific failure with a free-form message.
Trait Implementations§
Source§impl Debug for StateLoadError
impl Debug for StateLoadError
Source§impl Display for StateLoadError
impl Display for StateLoadError
Source§impl Error for StateLoadError
impl Error for StateLoadError
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()