pub struct Envelope<A>(_)
where
A: Actor;
Implementations
sourceimpl<A> Envelope<A>where
A: Actor,
impl<A> Envelope<A>where
A: Actor,
pub fn new<M>(msg: M, tx: Option<Sender<<M as Message>::Result>>) -> Envelope<A>where
A: Handler<M>,
<A as Actor>::Context: AsyncContext<A>,
M: 'static + Message + Send,
<M as Message>::Result: Send,
pub fn with_proxy(
proxy: Box<dyn EnvelopeProxy<Actor = A> + Send + 'static, Global>
) -> Envelope<A>
Trait Implementations
sourceimpl<A> EnvelopeProxy for Envelope<A>where
A: Actor,
impl<A> EnvelopeProxy for Envelope<A>where
A: Actor,
Auto Trait Implementations
impl<A> !RefUnwindSafe for Envelope<A>
impl<A> Send for Envelope<A>
impl<A> !Sync for Envelope<A>
impl<A> Unpin for Envelope<A>
impl<A> !UnwindSafe for Envelope<A>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more