pub struct BoundedMailbox<S: Service> { /* private fields */ }
Implementations§
Source§impl<S: Service> BoundedMailbox<S>
impl<S: Service> BoundedMailbox<S>
pub fn create(channel_size: usize) -> (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§
Source§impl<S: Service> Clone for BoundedMailbox<S>
impl<S: Service> Clone for BoundedMailbox<S>
Source§impl<M, S> From<BoundedMailbox<S>> for MsgMailbox<M>
impl<M, S> From<BoundedMailbox<S>> for MsgMailbox<M>
Source§fn from(mailbox: BoundedMailbox<S>) -> Self
fn from(mailbox: BoundedMailbox<S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<S> Freeze for BoundedMailbox<S>
impl<S> RefUnwindSafe for BoundedMailbox<S>
impl<S> Send for BoundedMailbox<S>
impl<S> Sync for BoundedMailbox<S>
impl<S> Unpin for BoundedMailbox<S>
impl<S> UnwindSafe for BoundedMailbox<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