pub struct Inbox<A: Actor> { /* private fields */ }Implementations§
Source§impl<A: Actor> Inbox<A>
impl<A: Actor> Inbox<A>
pub async fn recv_typed_message<M: 'static>(&self) -> Option<M>
Sourcepub fn drain_for_test(&self) -> Vec<Box<dyn Any>>
pub fn drain_for_test(&self) -> Vec<Box<dyn Any>>
Destroys the inbox and returns the list of pending messages or commands in the low priority channel.
Warning this iterator might never be exhausted if there is a living mailbox associated to it.
Sourcepub fn drain_for_test_typed<M: 'static>(&self) -> Vec<M>
pub fn drain_for_test_typed<M: 'static>(&self) -> Vec<M>
Destroys the inbox and returns the list of pending messages or commands in the low priority channel.
Warning this iterator might never be exhausted if there is a living mailbox associated to it.
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for Inbox<A>
impl<A> RefUnwindSafe for Inbox<A>
impl<A> Send for Inbox<A>
impl<A> Sync for Inbox<A>
impl<A> Unpin for Inbox<A>
impl<A> UnwindSafe for Inbox<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