pub struct AccessRequirementError { /* private fields */ }Expand description
Query access requirement failure with the selected decision preserved.
Implementations§
Source§impl AccessRequirementError
impl AccessRequirementError
Sourcepub const fn violation(&self) -> &AccessRequirementViolation
pub const fn violation(&self) -> &AccessRequirementViolation
Borrow the violated access requirement.
Sourcepub const fn decision(&self) -> &ExplainAccessDecisionV1
pub const fn decision(&self) -> &ExplainAccessDecisionV1
Borrow the selected access decision that failed the requirement.
Trait Implementations§
Source§impl Debug for AccessRequirementError
impl Debug for AccessRequirementError
Source§impl Display for AccessRequirementError
impl Display for AccessRequirementError
Source§impl Error for AccessRequirementError
impl Error for AccessRequirementError
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<AccessRequirementError> for QueryError
impl From<AccessRequirementError> for QueryError
Source§fn from(err: AccessRequirementError) -> Self
fn from(err: AccessRequirementError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AccessRequirementError
impl RefUnwindSafe for AccessRequirementError
impl Send for AccessRequirementError
impl Sync for AccessRequirementError
impl Unpin for AccessRequirementError
impl UnsafeUnpin for AccessRequirementError
impl UnwindSafe for AccessRequirementError
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