pub struct MailboxTx<M> { /* private fields */ }Implementations§
Source§impl<M> MailboxTx<M>
impl<M> MailboxTx<M>
pub fn new( user_tx: Sender<M>, ctl_tx: Sender<ControlMsg>, meter: Arc<MailboxMeter>, pid: Pid, overload: OverloadConfig, ) -> Self
pub fn pid(&self) -> Pid
pub async fn send_wait(&self, msg: M) -> Result<(), TellError>
pub fn try_send(&self, msg: M) -> Result<(), TellError>
pub fn try_send_control(&self, msg: ControlMsg) -> Result<(), TellError>
pub async fn send_control_wait(&self, msg: ControlMsg) -> Result<(), TellError>
pub fn stop(&self) -> Result<(), TellError>
pub async fn stop_wait(&self) -> Result<(), TellError>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn control_len(&self) -> usize
pub fn inflight_count(&self) -> usize
pub fn idle_for(&self) -> Duration
pub fn silence_for(&self) -> Duration
pub fn incarnation(&self) -> u64
pub fn is_closed(&self) -> bool
pub fn is_terminated(&self) -> bool
pub async fn ask_wait<F, R>(&self, factory: F) -> Result<R, AskError>
pub async fn ask_wait_timeout<F, R>( &self, factory: F, timeout: Duration, ) -> Result<R, AskError>
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for MailboxTx<M>
impl<M> RefUnwindSafe for MailboxTx<M>
impl<M> Send for MailboxTx<M>where
M: Send,
impl<M> Sync for MailboxTx<M>where
M: Send,
impl<M> Unpin for MailboxTx<M>
impl<M> UnsafeUnpin for MailboxTx<M>
impl<M> UnwindSafe for MailboxTx<M>
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