pub struct Uppercase;Trait Implementations§
source§impl Worker for Uppercase
impl Worker for Uppercase
§type Message = String
type Message = String
The type of Message the Worker is sent in
Self::handle_message.§type Context = Context
type Context = Context
The API and other resources available for the worker during message
processing. Read more
source§fn handle_message<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 mut Context,
msg: Routed<String>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_message<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 mut Context,
msg: Routed<String>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Try to open and handle a typed message.
Auto Trait Implementations§
impl RefUnwindSafe for Uppercase
impl Send for Uppercase
impl Sync for Uppercase
impl Unpin for Uppercase
impl UnwindSafe for Uppercase
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