pub struct DefAuthHandler;Expand description
默认的认证处理器实现
Implementations§
Trait Implementations§
Source§impl AuthHandler for DefAuthHandler
impl AuthHandler for DefAuthHandler
Source§fn handle_login<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 AppContext,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_login<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 AppContext,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
处理登录请求
Source§fn handle_logout<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 AppContext,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_logout<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 AppContext,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
处理登出请求
Source§impl Default for DefAuthHandler
impl Default for DefAuthHandler
Source§fn default() -> DefAuthHandler
fn default() -> DefAuthHandler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DefAuthHandler
impl RefUnwindSafe for DefAuthHandler
impl Send for DefAuthHandler
impl Sync for DefAuthHandler
impl Unpin for DefAuthHandler
impl UnwindSafe for DefAuthHandler
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