pub struct LoggingListener;Expand description
简单的日志监听器示例
Trait Implementations§
Source§impl SaTokenListener for LoggingListener
impl SaTokenListener for LoggingListener
Source§fn on_login<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
token: &'life2 str,
login_type: &'life3 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LoggingListener: 'async_trait,
fn on_login<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
token: &'life2 str,
login_type: &'life3 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LoggingListener: 'async_trait,
登录事件 | Login Event Read more
Source§fn on_logout<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
token: &'life2 str,
login_type: &'life3 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LoggingListener: 'async_trait,
fn on_logout<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
token: &'life2 str,
login_type: &'life3 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LoggingListener: 'async_trait,
登出事件 | Logout Event Read more
Source§fn on_kick_out<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
token: &'life2 str,
login_type: &'life3 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LoggingListener: 'async_trait,
fn on_kick_out<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
token: &'life2 str,
login_type: &'life3 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LoggingListener: 'async_trait,
踢出下线事件 | Kick Out Event Read more
Source§fn on_renew_timeout<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
token: &'life2 str,
login_type: &'life3 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LoggingListener: 'async_trait,
fn on_renew_timeout<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
token: &'life2 str,
login_type: &'life3 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LoggingListener: 'async_trait,
Token 续期事件 | Token Renewal Event Read more
Source§fn on_replaced<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
token: &'life2 str,
login_type: &'life3 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LoggingListener: 'async_trait,
fn on_replaced<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
token: &'life2 str,
login_type: &'life3 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
LoggingListener: 'async_trait,
被顶下线事件 | Replaced Event Read more
Source§fn on_banned<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
login_type: &'life2 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LoggingListener: 'async_trait,
fn on_banned<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
login_id: &'life1 str,
login_type: &'life2 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
LoggingListener: 'async_trait,
被封禁事件 | Banned Event Read more
Auto Trait Implementations§
impl Freeze for LoggingListener
impl RefUnwindSafe for LoggingListener
impl Send for LoggingListener
impl Sync for LoggingListener
impl Unpin for LoggingListener
impl UnwindSafe for LoggingListener
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