pub struct DefSystemHandler;Expand description
默认的系统处理器实现
Implementations§
Trait Implementations§
Source§impl Default for DefSystemHandler
impl Default for DefSystemHandler
Source§fn default() -> DefSystemHandler
fn default() -> DefSystemHandler
Returns the “default value” for a type. Read more
Source§impl SystemHandler for DefSystemHandler
impl SystemHandler for DefSystemHandler
Source§fn handle_new_connection<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 AppContext,
conn: &'life2 ConnectionInfo,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn handle_new_connection<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 AppContext,
conn: &'life2 ConnectionInfo,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
处理新链接
Source§fn handle_set_background<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 AppContext,
background: bool,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_set_background<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 AppContext,
background: bool,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
设置后台运行
Source§fn handle_set_language<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 AppContext,
language: String,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_set_language<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 AppContext,
language: String,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
设置语言
Source§fn handle_close<'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_close<'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,
关闭
Auto Trait Implementations§
impl Freeze for DefSystemHandler
impl RefUnwindSafe for DefSystemHandler
impl Send for DefSystemHandler
impl Sync for DefSystemHandler
impl Unpin for DefSystemHandler
impl UnwindSafe for DefSystemHandler
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