Struct ockam::RelayService
source · #[non_exhaustive]pub struct RelayService { /* private fields */ }
Expand description
Alias worker to register remote workers under local names.
To talk with this worker, you can use the
RemoteRelay
which is a
compatible client for this server.
Implementations§
Trait Implementations§
source§impl Worker for RelayService
impl Worker for RelayService
§type Context = Context
type Context = Context
The API and other resources available for the worker during message
processing. Read more
§type Message = Any
type Message = Any
The type of Message the Worker is sent in
Self::handle_message
.source§fn handle_message<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 mut Self::Context,
msg: Routed<Self::Message>
) -> 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 Self::Context,
msg: Routed<Self::Message>
) -> 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 RelayService
impl Send for RelayService
impl Sync for RelayService
impl Unpin for RelayService
impl !UnwindSafe for RelayService
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