pub struct AuthManager { /* private fields */ }Implementations§
Source§impl AuthManager
impl AuthManager
pub fn new() -> Self
pub fn is_auth_required(&self) -> bool
pub fn authenticate(&mut self, provided_token: &str) -> Result<String, String>
pub fn is_rate_limited(&self) -> bool
pub fn session_count(&self) -> usize
pub fn validate_session(&self, session_id: &str) -> bool
pub fn revoke_session(&mut self, session_id: &str) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthManager
impl RefUnwindSafe for AuthManager
impl Send for AuthManager
impl Sync for AuthManager
impl Unpin for AuthManager
impl UnsafeUnpin for AuthManager
impl UnwindSafe for AuthManager
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