Struct asynchronix::simulation::Address
source · pub struct Address<M: Model>(/* private fields */);
Expand description
Handle to a model mailbox.
An address always points to the same mailbox. Unlike a Mailbox
, however,
an address can be cloned and shared between threads.
For the sake of convenience, methods that require an address by value will
typically also accept an &Address
or an &Mailbox
since these references
implement the Into<Address>
trait, automatically invoking
Address::clone()
or Mailbox::address()
as appropriate.
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for Address<M>
impl<M> !RefUnwindSafe for Address<M>
impl<M> Send for Address<M>
impl<M> Sync for Address<M>
impl<M> Unpin for Address<M>
impl<M> !UnwindSafe for Address<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)