Struct elfo::Context [−][src]
Implementations
👎 Deprecated
Closes the mailbox, that leads to returning None
from recv()
and
try_recv()
after handling all available messages in the mailbox.
Returns true
if the mailbox has just been closed.
pub async fn send_to<M>(
&'_ self,
recipient: Addr,
message: M
) -> Result<(), SendError<M>> where
M: Message,
pub fn try_send_to<M>(
&self,
recipient: Addr,
message: M
) -> Result<(), TrySendError<M>> where
M: Message,
pub fn respond<R>(
&self,
token: ResponseToken<R>,
message: <R as Request>::Response
) where
R: Request,
pub fn unpack_config(&self, config: &'c AnyConfig) -> &'c C where
C: 'static + for<'de> Deserialize<'de>,
pub fn unpack_config(&self, config: &'c AnyConfig) -> &'c C where
C: 'static + for<'de> Deserialize<'de>,
XXX: mb BoundEnvelope<C>
?
Trait Implementations
Auto Trait Implementations
impl<C = (), K = Singleton, S = ()> !RefUnwindSafe for Context<C, K, S>
impl<C = (), K = Singleton, S = ()> !UnwindSafe for Context<C, K, S>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more