pub struct DefaultSystemHandler;Expand description
默认系统消息处理器
Trait Implementations§
Source§impl SystemHandler for DefaultSystemHandler
impl SystemHandler for DefaultSystemHandler
Source§fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
system_message: &'life1 MessageBody,
) -> Pin<Box<dyn Future<Output = (u16, String)> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
system_message: &'life1 MessageBody,
) -> Pin<Box<dyn Future<Output = (u16, String)> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
处理系统消息,返回 (状态码, 响应消息)
Source§fn raw_process<'life0, 'life1, 'async_trait>(
&'life0 self,
system_message: &'life1 MessageBody,
) -> Pin<Box<dyn Future<Output = AckMessage> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn raw_process<'life0, 'life1, 'async_trait>(
&'life0 self,
system_message: &'life1 MessageBody,
) -> Pin<Box<dyn Future<Output = AckMessage> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
内部处理方法,封装 ACK 构建逻辑
Auto Trait Implementations§
impl Freeze for DefaultSystemHandler
impl RefUnwindSafe for DefaultSystemHandler
impl Send for DefaultSystemHandler
impl Sync for DefaultSystemHandler
impl Unpin for DefaultSystemHandler
impl UnsafeUnpin for DefaultSystemHandler
impl UnwindSafe for DefaultSystemHandler
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