Struct actix::dev::channel::AddressSender
source · pub struct AddressSender<A: Actor> { /* private fields */ }
Expand description
The transmission end of a channel which is used to send values.
This is created by the channel
method.
Implementations§
source§impl<A: Actor> AddressSender<A>
impl<A: Actor> AddressSender<A>
sourcepub fn send<M>(&self, msg: M) -> Result<Receiver<M::Result>, SendError<M>>where
A: Handler<M>,
A::Context: ToEnvelope<A, M>,
M::Result: Send,
M: Message + Send,
pub fn send<M>(&self, msg: M) -> Result<Receiver<M::Result>, SendError<M>>where
A: Handler<M>,
A::Context: ToEnvelope<A, M>,
M::Result: Send,
M: Message + Send,
Attempts to send a message on this Sender<A>
with blocking.
This function, must be called from inside of a task.
Trait Implementations§
source§impl<A: Actor> Clone for AddressSender<A>
impl<A: Actor> Clone for AddressSender<A>
source§fn clone(&self) -> AddressSender<A>
fn clone(&self) -> AddressSender<A>
Returns a copy 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 more