pub enum AuthState {
NotYetRequested,
Challenged(String),
InProgress(Id),
Success,
Failure(String),
}
Expand description
The state of authentication to the relay
Variants§
NotYetRequested
AUTH has not been requested by the relay
Challenged(String)
AUTH has been requested
InProgress(Id)
AUTH is in progress, we have sent the event
Success
AUTH succeeded
Failure(String)
AUTH failed
Trait Implementations§
impl Eq for AuthState
impl StructuralPartialEq for AuthState
Auto Trait Implementations§
impl Freeze for AuthState
impl RefUnwindSafe for AuthState
impl Send for AuthState
impl Sync for AuthState
impl Unpin for AuthState
impl UnwindSafe for AuthState
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