pub struct AddressSender<A>where
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
sourceimpl<A> AddressSender<A>where
A: Actor,
impl<A> AddressSender<A>where
A: Actor,
sourcepub fn send<M>(
&self,
msg: M
) -> Result<Receiver<<M as Message>::Result>, SendError<M>>where
A: Handler<M>,
<A as Actor>::Context: ToEnvelope<A, M>,
<M as Message>::Result: Send,
M: Message + Send,
pub fn send<M>(
&self,
msg: M
) -> Result<Receiver<<M as Message>::Result>, SendError<M>>where
A: Handler<M>,
<A as Actor>::Context: ToEnvelope<A, M>,
<M as Message>::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
sourceimpl<A> Clone for AddressSender<A>where
A: Actor,
impl<A> Clone for AddressSender<A>where
A: Actor,
sourcefn clone(&self) -> AddressSender<A>
fn clone(&self) -> AddressSender<A>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<A> Debug for AddressSender<A>where
A: Actor,
impl<A> Debug for AddressSender<A>where
A: Actor,
sourceimpl<A> Drop for AddressSender<A>where
A: Actor,
impl<A> Drop for AddressSender<A>where
A: Actor,
sourceimpl<A> Hash for AddressSender<A>where
A: Actor,
impl<A> Hash for AddressSender<A>where
A: Actor,
sourceimpl<A> PartialEq<AddressSender<A>> for AddressSender<A>where
A: Actor,
impl<A> PartialEq<AddressSender<A>> for AddressSender<A>where
A: Actor,
sourcefn eq(&self, other: &AddressSender<A>) -> bool
fn eq(&self, other: &AddressSender<A>) -> bool
impl<A> Eq for AddressSender<A>where
A: Actor,
Auto Trait Implementations
impl<A> !RefUnwindSafe for AddressSender<A>
impl<A> Send for AddressSender<A>
impl<A> Sync for AddressSender<A>
impl<A> Unpin for AddressSender<A>
impl<A> !UnwindSafe for AddressSender<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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.