pub struct IntoEnvelope<E> { /* private fields */ }Expand description
Intermediate type used to pass events to Context::send
and Supervisor::send.
You don’t interact with this type directly; any event type E
converts into it automatically via From<E>:
ⓘ
ctx.send(MyEvent::Ping).await?;Created automatically via From<E> (for events) or
From<Envelope<E>> (for pre-built envelopes).
Trait Implementations§
Source§impl<E: Clone> Clone for IntoEnvelope<E>
impl<E: Clone> Clone for IntoEnvelope<E>
Source§fn clone(&self) -> IntoEnvelope<E>
fn clone(&self) -> IntoEnvelope<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: Debug> Debug for IntoEnvelope<E>
impl<E: Debug> Debug for IntoEnvelope<E>
Source§impl<E: Event> From<E> for IntoEnvelope<E>
impl<E: Event> From<E> for IntoEnvelope<E>
Auto Trait Implementations§
impl<E> Freeze for IntoEnvelope<E>where
E: Freeze,
impl<E> RefUnwindSafe for IntoEnvelope<E>where
E: RefUnwindSafe,
impl<E> Send for IntoEnvelope<E>where
E: Send,
impl<E> Sync for IntoEnvelope<E>where
E: Sync,
impl<E> Unpin for IntoEnvelope<E>where
E: Unpin,
impl<E> UnsafeUnpin for IntoEnvelope<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for IntoEnvelope<E>where
E: UnwindSafe,
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