pub enum ContextCallbackError {
SecurityFailed(String),
KeyNotFound(String),
KeyExists(String),
InvalidOperation(String),
MissingKey,
MissingValue,
NamespaceNotAccessible(String),
ReadOnly(String),
Internal(String),
}Expand description
Context callback error
Variants§
SecurityFailed(String)
Security validation failed
KeyNotFound(String)
Key not found
KeyExists(String)
Key already exists
InvalidOperation(String)
Invalid operation
MissingKey
Missing key
MissingValue
Missing value
NamespaceNotAccessible(String)
Namespace not accessible
ReadOnly(String)
Read-only context
Internal(String)
Internal error
Trait Implementations§
Source§impl Debug for ContextCallbackError
impl Debug for ContextCallbackError
Source§impl Display for ContextCallbackError
impl Display for ContextCallbackError
Source§impl Error for ContextCallbackError
impl Error for ContextCallbackError
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<ContextCallbackError> for CallbackError
impl From<ContextCallbackError> for CallbackError
Source§fn from(source: ContextCallbackError) -> Self
fn from(source: ContextCallbackError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContextCallbackError
impl RefUnwindSafe for ContextCallbackError
impl Send for ContextCallbackError
impl Sync for ContextCallbackError
impl Unpin for ContextCallbackError
impl UnsafeUnpin for ContextCallbackError
impl UnwindSafe for ContextCallbackError
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