pub enum ConnectionStatus {
Active,
NeedsReauth,
Revoked,
}Expand description
The lifecycle status of a ConnectionRecord. Closed enum, additive
evolution.
Variants§
Active
Resolutions may proceed.
NeedsReauth
The refresh path failed terminally (an expired refresh token, a
provider invalid_grant): calls fail closed with a typed re-auth
signal until a new consent act is recorded — never silent retries
with stale material, because a stale credential retried looks
exactly like an attack retried.
Revoked
Revoked. Outstanding handles fail at their next use with a typed, journaled denial naming the revoked grant.
Trait Implementations§
Source§impl Clone for ConnectionStatus
impl Clone for ConnectionStatus
impl Copy for ConnectionStatus
Source§impl Debug for ConnectionStatus
impl Debug for ConnectionStatus
Source§impl<'de> Deserialize<'de> for ConnectionStatus
impl<'de> Deserialize<'de> for ConnectionStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ConnectionStatus
Source§impl Hash for ConnectionStatus
impl Hash for ConnectionStatus
Source§impl Ord for ConnectionStatus
impl Ord for ConnectionStatus
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ConnectionStatus
impl PartialEq for ConnectionStatus
Source§impl PartialOrd for ConnectionStatus
impl PartialOrd for ConnectionStatus
Source§impl Serialize for ConnectionStatus
impl Serialize for ConnectionStatus
impl StructuralPartialEq for ConnectionStatus
Auto Trait Implementations§
impl Freeze for ConnectionStatus
impl RefUnwindSafe for ConnectionStatus
impl Send for ConnectionStatus
impl Sync for ConnectionStatus
impl Unpin for ConnectionStatus
impl UnsafeUnpin for ConnectionStatus
impl UnwindSafe for ConnectionStatus
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