pub struct NoMail;Expand description
Every operation throws, so a bare evaluator is usable and a stray send is
catchable rather than a panic.
Trait Implementations§
Source§impl Mail for NoMail
impl Mail for NoMail
fn spawn(&mut self, _: Val) -> Result<Val, Val>
fn send(&mut self, _: &Val, _: Val) -> Result<Val, Val>
Source§fn receive(&mut self) -> Option<Val>
fn receive(&mut self) -> Option<Val>
None means the mailbox is empty, which is the only reason
anything in this machine ever blocks.fn monitor(&mut self, _: &Val) -> Result<Val, Val>
fn limit(&mut self, _: &Val, _: i64) -> Result<Val, Val>
Auto Trait Implementations§
impl Freeze for NoMail
impl RefUnwindSafe for NoMail
impl Send for NoMail
impl Sync for NoMail
impl Unpin for NoMail
impl UnwindSafe for NoMail
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