pub struct SimAtomicSender<T: Serialize + DeserializeOwned, O: Ordering, R: Retries>(/* private fields */);Available on crate feature
sim only.Expand description
A sender for an atomic input in a simulation.
send_atomic is synchronous — the value is immediately available in
the next atomic slice without requiring a separate tick.
Implementations§
Source§impl<T: Serialize + DeserializeOwned, O: Ordering> SimAtomicSender<T, O, ExactlyOnce>
impl<T: Serialize + DeserializeOwned, O: Ordering> SimAtomicSender<T, O, ExactlyOnce>
Sourcepub fn send_many_unordered_atomic<I: IntoIterator<Item = T>>(&self, iter: I)
pub fn send_many_unordered_atomic<I: IntoIterator<Item = T>>(&self, iter: I)
Sends several messages into the atomic input, in non-deterministic order. Values are immediately available in the next atomic slice.
Source§impl<T: Serialize + DeserializeOwned> SimAtomicSender<T, TotalOrder, ExactlyOnce>
impl<T: Serialize + DeserializeOwned> SimAtomicSender<T, TotalOrder, ExactlyOnce>
Sourcepub fn send_atomic(&self, t: T)
pub fn send_atomic(&self, t: T)
Sends a message into the atomic input. The value is immediately available in the next atomic slice without requiring a separate tick.
Sourcepub fn send_many_atomic<I: IntoIterator<Item = T>>(&self, iter: I)
pub fn send_many_atomic<I: IntoIterator<Item = T>>(&self, iter: I)
Sends several messages into the atomic input. Values are immediately available in the next atomic slice.
Auto Trait Implementations§
impl<T, O, R> Freeze for SimAtomicSender<T, O, R>
impl<T, O, R> RefUnwindSafe for SimAtomicSender<T, O, R>
impl<T, O, R> Send for SimAtomicSender<T, O, R>
impl<T, O, R> Sync for SimAtomicSender<T, O, R>
impl<T, O, R> Unpin for SimAtomicSender<T, O, R>
impl<T, O, R> UnsafeUnpin for SimAtomicSender<T, O, R>
impl<T, O, R> UnwindSafe for SimAtomicSender<T, O, R>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.