[][src]Struct actix_web::actix::dev::Mailbox

pub struct Mailbox<A> where
    A: Actor,
    <A as Actor>::Context: AsyncContext<A>, 
{ /* fields omitted */ }

Methods

impl<A> Mailbox<A> where
    A: Actor,
    <A as Actor>::Context: AsyncContext<A>, 
[src]

pub fn new(msgs: AddressReceiver<A>) -> Mailbox<A>[src]

pub fn capacity(&self) -> usize[src]

pub fn set_capacity(&mut self, cap: usize)[src]

pub fn connected(&self) -> bool[src]

pub fn address(&self) -> Addr<A>[src]

pub fn sender_producer(&self) -> AddressSenderProducer<A>[src]

pub fn poll(&mut self, act: &mut A, ctx: &mut <A as Actor>::Context)[src]

Trait Implementations

impl<A> Debug for Mailbox<A> where
    A: Actor,
    <A as Actor>::Context: AsyncContext<A>, 
[src]

impl<A> Default for Mailbox<A> where
    A: Actor,
    <A as Actor>::Context: AsyncContext<A>, 
[src]

Auto Trait Implementations

impl<A> Send for Mailbox<A>

impl<A> Sync for Mailbox<A>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T