pub enum AuthEvent {
AuthenticationStarted {
provider: String,
},
AuthenticationInProgress {
provider: String,
step: String,
},
AuthenticationSuccess {
provider: String,
username: String,
uuid: String,
},
AuthenticationFailed {
provider: String,
error: String,
},
AlreadyAuthenticated {
provider: String,
username: String,
},
}Expand description
Authentication events
Variants§
AuthenticationStarted
Authentication process begins
AuthenticationInProgress
Authentication is ongoing (generic progress)
AuthenticationSuccess
Authentication succeeded
AuthenticationFailed
Authentication failed
AlreadyAuthenticated
Valid session already exists (skip auth)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthEvent
impl<'de> Deserialize<'de> for AuthEvent
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
Auto Trait Implementations§
impl Freeze for AuthEvent
impl RefUnwindSafe for AuthEvent
impl Send for AuthEvent
impl Sync for AuthEvent
impl Unpin for AuthEvent
impl UnwindSafe for AuthEvent
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)