pub enum PluginPrefError {
InvalidVar,
InvalidValue,
TooLong,
Utf8Error(IntoStringError),
VarUtf8Error(Utf8Error),
Failed,
}Expand description
Errors returned by pluginpref_* functions.
Variants§
InvalidVar
The var contains a forbidden character: [ ,=\n] (space, comma,
equals, newline), is too long (max 126 bytes), is empty, or contains
trailing ASCII whitespace.
Returned by anything that interacts with vars. pluginpref_list only
returns these during iteration.
InvalidValue
The value starts with space.
Returned by pluginpref_set.
TooLong
The input (var + value) was too long after encoding.
Returned by pluginpref_set.
Utf8Error(IntoStringError)
The returned value was not valid UTF-8.
Returned by pluginpref_get.
VarUtf8Error(Utf8Error)
The returned var was not valid UTF-8.
Returned while iterating a pluginpref_list.
Failed
The operation failed.
Returned by anything that interacts with pluginprefs. Iterating a
pluginpref_list never returns this.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PluginPrefError
impl RefUnwindSafe for PluginPrefError
impl Send for PluginPrefError
impl Sync for PluginPrefError
impl Unpin for PluginPrefError
impl UnwindSafe for PluginPrefError
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