pub struct Mailbox<S: Service> { /* private fields */ }
Implementations§
Source§impl<S: Service> Mailbox<S>
impl<S: Service> Mailbox<S>
pub fn create() -> (Self, Receiver<Envelope<S>>)
pub fn send_and_forget<M>(&self, message: M) -> Result<(), MailboxError>
pub fn send_and_wait_for_reply<M>( &self, message: M, ) -> Result<M::Reply, MailboxError>
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Mailbox<S>
impl<S> RefUnwindSafe for Mailbox<S>
impl<S> Send for Mailbox<S>
impl<S> Sync for Mailbox<S>
impl<S> Unpin for Mailbox<S>
impl<S> UnwindSafe for Mailbox<S>
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