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<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> !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