pub struct AuthState {
pub username: Vec<u8>,
pub attempts: u32,
pub max_attempts: u32,
pub authenticated: bool,
pub service_name: Vec<u8>,
pub allowed_methods: Vec<AuthMethod>,
pub partial_success: bool,
}Expand description
Authentication state tracking
Fields§
§username: Vec<u8>Username being authenticated
attempts: u32Number of failed attempts
max_attempts: u32Maximum allowed attempts
authenticated: boolAuthenticated successfully
service_name: Vec<u8>Service name requested
allowed_methods: Vec<AuthMethod>Allowed methods
partial_success: boolPartial success flag
Implementations§
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§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)