Struct elfo_core::Context [−][src]
Implementations
impl<C, K, S> Context<C, K, S>
[src]
pub fn addr(&self) -> Addr
[src]
pub fn config(&self) -> &C
[src]
pub fn key(&self) -> &K
[src]
pub fn with<S1>(self, source: S1) -> Context<C, K, Combined<S, S1>>
[src]
pub fn set_status(&self, status: ActorStatus)
[src]
pub async fn send<M: Message>(&self, message: M) -> Result<(), SendError<M>>
[src]
pub fn request<R: Request>(
&self,
request: R
) -> RequestBuilder<'_, C, K, S, R, Any>
[src]
&self,
request: R
) -> RequestBuilder<'_, C, K, S, R, Any>
pub async fn send_to<M: Message>(
&self,
recipient: Addr,
message: M
) -> Result<(), SendError<M>>
[src]
&self,
recipient: Addr,
message: M
) -> Result<(), SendError<M>>
pub fn try_send_to<M: Message>(
&self,
recipient: Addr,
message: M
) -> Result<(), TrySendError<M>>
[src]
&self,
recipient: Addr,
message: M
) -> Result<(), TrySendError<M>>
pub fn respond<R: Request>(&self, token: ResponseToken<R>, message: R::Response)
[src]
pub async fn recv(&mut self) -> Option<Envelope> where
C: 'static,
S: Source,
[src]
C: 'static,
S: Source,
pub fn try_recv(&mut self) -> Result<Envelope, TryRecvError> where
C: 'static,
[src]
C: 'static,
pub fn unpack_config<'c>(&self, config: &'c AnyConfig) -> &'c C where
C: for<'de> Deserialize<'de> + 'static,
[src]
C: for<'de> Deserialize<'de> + 'static,
XXX: mb BoundEnvelope<C>
?
pub fn pruned(&self) -> Context
[src]
Trait Implementations
impl<C, K: Clone> Clone for Context<C, K>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<C = (), K = Singleton, S = ()> !RefUnwindSafe for Context<C, K, S>
impl<C, K, S> Send for Context<C, K, S> where
C: Send + Sync,
K: Send,
S: Send,
C: Send + Sync,
K: Send,
S: Send,
impl<C, K, S> Sync for Context<C, K, S> where
C: Send + Sync,
K: Sync,
S: Sync,
C: Send + Sync,
K: Sync,
S: Sync,
impl<C, K, S> Unpin for Context<C, K, S> where
K: Unpin,
S: Unpin,
K: Unpin,
S: Unpin,
impl<C = (), K = Singleton, S = ()> !UnwindSafe for Context<C, K, S>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,