pub enum Connection {
SignedIn {
principal: TokenName,
scopes: Vec<Scope>,
},
Refused {
error: String,
},
Unreachable {
error: String,
},
}Expand description
What asking the store who the token belongs to came to.
Variants§
SignedIn
The token was accepted.
Refused
The store answered with an HTTP response, but not with an accepted token.
Unreachable
The store sent no HTTP response.
Trait Implementations§
Source§impl Clone for Connection
impl Clone for Connection
Auto Trait Implementations§
impl Forget for Connection
impl Freeze for Connection
impl Move for Connection
impl RefUnwindSafe for Connection
impl Send for Connectionwhere
RawVecInner: Send,
impl Sync for Connectionwhere
RawVecInner: Sync,
impl Unpin for Connection
impl UnsafeUnpin for Connectionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Scope>: UnsafeUnpin,
impl UnwindSafe for Connectionwhere
RawVecInner: UnwindSafe,
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