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<OneshotReceiver<M::Result>, SendError<M>>
 
pub fn send<M>( &self, msg: M, ) -> Result<OneshotReceiver<M::Result>, SendError<M>>
Attempts to send a message on this Sender<A> with blocking.
This function must be called from inside of a task.
Sourcepub fn try_send<M>(&self, msg: M, park: bool) -> Result<(), SendError<M>>
 
pub fn try_send<M>(&self, msg: M, park: bool) -> Result<(), SendError<M>>
Attempts to send a message on this Sender<A> without blocking.
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 moreSource§impl<A: Actor> Debug for AddressSender<A>
 
impl<A: Actor> Debug for AddressSender<A>
Source§impl<A: Actor> Drop for AddressSender<A>
 
impl<A: Actor> Drop for AddressSender<A>
Source§impl<A: Actor> Hash for AddressSender<A>
 
impl<A: Actor> Hash for AddressSender<A>
Source§impl<A: Actor> PartialEq for AddressSender<A>
 
impl<A: Actor> PartialEq for AddressSender<A>
impl<A: Actor> Eq for AddressSender<A>
Auto Trait Implementations§
impl<A> Freeze for AddressSender<A>
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§
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