pub struct FunctionProcessor { /* private fields */ }Expand description
函数式消息处理器
使用闭包处理消息,适合简单场景
Implementations§
Trait Implementations§
Source§impl MessageProcessor for FunctionProcessor
impl MessageProcessor for FunctionProcessor
Auto Trait Implementations§
impl !RefUnwindSafe for FunctionProcessor
impl !UnwindSafe for FunctionProcessor
impl Freeze for FunctionProcessor
impl Send for FunctionProcessor
impl Sync for FunctionProcessor
impl Unpin for FunctionProcessor
impl UnsafeUnpin for FunctionProcessor
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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