pub enum PresetError {
NotFound,
ReadOnlyScope,
NoUserDirectory,
InvalidState,
InvalidName,
Io(Error),
}Expand description
Why a PresetStore operation failed.
Variants§
NotFound
No preset with that URI / uuid exists in any scope.
ReadOnlyScope
The operation mutates, but the preset lives in the factory
or pack scope - both are read-only from the runtime’s
perspective (cargo truce install owns factory; pack files
belong to their distributor).
NoUserDirectory
The per-OS user preset directory could not be resolved (missing home / app-data environment).
InvalidState
The preset’s embedded state envelope doesn’t parse or belongs to a different plugin.
InvalidName
The display name is empty after sanitization.
Io(Error)
Trait Implementations§
Source§impl Debug for PresetError
impl Debug for PresetError
Source§impl Display for PresetError
impl Display for PresetError
Source§impl Error for PresetError
impl Error for PresetError
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 From<Error> for PresetError
impl From<Error> for PresetError
Source§fn from(e: Error) -> PresetError
fn from(e: Error) -> PresetError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PresetError
impl !UnwindSafe for PresetError
impl Freeze for PresetError
impl Send for PresetError
impl Sync for PresetError
impl Unpin for PresetError
impl UnsafeUnpin for PresetError
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