pub enum AuthOutcome {
Authenticated {
principal: Option<Principal>,
},
Rejected,
}Expand description
Result of the connect-time authentication decision.
Variants§
Authenticated
Authenticated. principal is Some when a named user authenticated via
the UserStore, and None for the legacy shared-password / open paths
where there is no per-user identity.
Rejected
Rejected. The caller sends a generic “authentication failed” error and records a rate-limit failure — it must not reveal which check failed.
Trait Implementations§
Source§impl Clone for AuthOutcome
impl Clone for AuthOutcome
Source§fn clone(&self) -> AuthOutcome
fn clone(&self) -> AuthOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AuthOutcome
impl Debug for AuthOutcome
impl Eq for AuthOutcome
Source§impl PartialEq for AuthOutcome
impl PartialEq for AuthOutcome
Source§fn eq(&self, other: &AuthOutcome) -> bool
fn eq(&self, other: &AuthOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AuthOutcome
Auto Trait Implementations§
impl Freeze for AuthOutcome
impl RefUnwindSafe for AuthOutcome
impl Send for AuthOutcome
impl Sync for AuthOutcome
impl Unpin for AuthOutcome
impl UnsafeUnpin for AuthOutcome
impl UnwindSafe for AuthOutcome
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