pub enum AuthorizationOutcome {
Granted,
Denied {
stage: AuthorizationStage,
access_event: AccessEvent,
},
Pending(AuthorizationStage),
NoAuthorization,
Unresolved {
stage: AuthorizationStage,
problem: AuthorizationProblem,
},
}Expand description
Complete result of this pure authorization pass. Only Granted permits access.
Variants§
Granted
Every required criterion and external phase passed.
Denied
A known criterion failed; its event is last in the returned root intents.
Fields
§
stage: AuthorizationStageCriterion or phase that stopped the pass.
§
access_event: AccessEventSpecific BACnet denial event.
Pending(AuthorizationStage)
An applicable accompaniment or external phase is still waiting.
NoAuthorization
Mode NONE requests no authorization, and returns no event intents.
Unresolved
Required evidence is unknown or inconsistent; this never permits access.
Fields
§
stage: AuthorizationStageEarliest visited stage that could not conclude.
§
problem: AuthorizationProblemRetained evidence problem.
Trait Implementations§
Source§impl Clone for AuthorizationOutcome
impl Clone for AuthorizationOutcome
Source§impl Debug for AuthorizationOutcome
impl Debug for AuthorizationOutcome
impl Eq for AuthorizationOutcome
Source§impl PartialEq for AuthorizationOutcome
impl PartialEq for AuthorizationOutcome
impl StructuralPartialEq for AuthorizationOutcome
Auto Trait Implementations§
impl Freeze for AuthorizationOutcome
impl RefUnwindSafe for AuthorizationOutcome
impl Send for AuthorizationOutcome
impl Sync for AuthorizationOutcome
impl Unpin for AuthorizationOutcome
impl UnsafeUnpin for AuthorizationOutcome
impl UnwindSafe for AuthorizationOutcome
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