pub enum SecurityContextError {
InvalidSyntax,
UnknownSensitivity {
name: BString,
},
UnknownCategory {
name: BString,
},
UnknownUser {
name: BString,
},
UnknownRole {
name: BString,
},
UnknownType {
name: BString,
},
InvalidRoleForUser {
role: BString,
user: BString,
},
InvalidSensitivityForUser {
sensitivity: BString,
user: BString,
},
InvalidSecurityRange {
low: BString,
high: BString,
},
}
Expand description
Errors that may be returned when attempting to parse or validate a security context.
Variants§
InvalidSyntax
UnknownSensitivity
Fields
§
name: BString
UnknownCategory
Fields
§
name: BString
UnknownUser
Fields
§
name: BString
UnknownRole
Fields
§
name: BString
UnknownType
Fields
§
name: BString
InvalidRoleForUser
InvalidSensitivityForUser
InvalidSecurityRange
Trait Implementations§
Source§impl Clone for SecurityContextError
impl Clone for SecurityContextError
Source§fn clone(&self) -> SecurityContextError
fn clone(&self) -> SecurityContextError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SecurityContextError
impl Debug for SecurityContextError
Source§impl Display for SecurityContextError
impl Display for SecurityContextError
Source§impl Error for SecurityContextError
impl Error for SecurityContextError
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 SecurityContextError
impl PartialEq for SecurityContextError
impl Eq for SecurityContextError
impl StructuralPartialEq for SecurityContextError
Auto Trait Implementations§
impl Freeze for SecurityContextError
impl RefUnwindSafe for SecurityContextError
impl Send for SecurityContextError
impl Sync for SecurityContextError
impl Unpin for SecurityContextError
impl UnwindSafe for SecurityContextError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)