pub enum BusAccessError {
Unauthorized {
transition: String,
resource: &'static str,
allow: Option<Vec<&'static str>>,
deny: Vec<&'static str>,
},
NotFound {
resource: &'static str,
},
}Expand description
Bus access error with policy context.
Variants§
Trait Implementations§
Source§impl Clone for BusAccessError
impl Clone for BusAccessError
Source§fn clone(&self) -> BusAccessError
fn clone(&self) -> BusAccessError
Returns a duplicate 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 BusAccessError
impl Debug for BusAccessError
Source§impl Display for BusAccessError
impl Display for BusAccessError
Source§impl Error for BusAccessError
impl Error for BusAccessError
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()
Auto Trait Implementations§
impl Freeze for BusAccessError
impl RefUnwindSafe for BusAccessError
impl Send for BusAccessError
impl Sync for BusAccessError
impl Unpin for BusAccessError
impl UnsafeUnpin for BusAccessError
impl UnwindSafe for BusAccessError
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