pub struct SimClusterReceiver<T: Serialize + DeserializeOwned, O: Ordering, R: Retries>(/* private fields */);Available on crate feature
sim only.Expand description
A receiver for an external cluster stream in a simulation.
Each received value is a (u32, T) tuple where the u32 is the raw
cluster member ID that produced the value.
Implementations§
Source§impl<T: Serialize + DeserializeOwned> SimClusterReceiver<T, TotalOrder, ExactlyOnce>
impl<T: Serialize + DeserializeOwned> SimClusterReceiver<T, TotalOrder, ExactlyOnce>
Source§impl<T: Serialize + DeserializeOwned> SimClusterReceiver<T, NoOrder, ExactlyOnce>
impl<T: Serialize + DeserializeOwned> SimClusterReceiver<T, NoOrder, ExactlyOnce>
Trait Implementations§
Source§impl<T: Serialize + DeserializeOwned, O: Ordering, R: Retries> Clone for SimClusterReceiver<T, O, R>
impl<T: Serialize + DeserializeOwned, O: Ordering, R: Retries> Clone for SimClusterReceiver<T, O, R>
impl<T: Serialize + DeserializeOwned, O: Ordering, R: Retries> Copy for SimClusterReceiver<T, O, R>
Auto Trait Implementations§
impl<T, O, R> Freeze for SimClusterReceiver<T, O, R>
impl<T, O, R> RefUnwindSafe for SimClusterReceiver<T, O, R>
impl<T, O, R> Send for SimClusterReceiver<T, O, R>
impl<T, O, R> Sync for SimClusterReceiver<T, O, R>
impl<T, O, R> Unpin for SimClusterReceiver<T, O, R>
impl<T, O, R> UnsafeUnpin for SimClusterReceiver<T, O, R>
impl<T, O, R> UnwindSafe for SimClusterReceiver<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.