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 Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnsafeUnpin for Connection
impl UnwindSafe for Connection
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