pub struct AuthEvent {
pub login_type: AuthLoginType,
pub outcome: LoginOutcome,
pub hostname: Cow<'static, str>,
}
Fields
login_type: AuthLoginType
Login type: local, remote, upgrade (change user)
outcome: LoginOutcome
Login success or failed
hostname: Cow<'static, str>
Host where the login happened
Implementations
sourceimpl AuthEvent
impl AuthEvent
pub fn login_type(&self) -> &AuthLoginType
pub fn outcome(&self) -> &LoginOutcome
pub fn hostname(&self) -> &str
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AuthEvent
impl Send for AuthEvent
impl Sync for AuthEvent
impl Unpin for AuthEvent
impl UnwindSafe for AuthEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more