pub struct Promises<O, R> { /* private fields */ }Expand description
What a host promises about something it supplies, each guarantee promised separately with
a manual_proof! saying why it holds. An EmbeddedInputChannel or
EmbeddedNetworkInputChannel is built from a stream and the Promises that meet its marker’s
guarantees.
Implementations§
Source§impl Promises<NoOrder, AtLeastOnce>
impl Promises<NoOrder, AtLeastOnce>
Source§impl<R> Promises<NoOrder, R>
impl<R> Promises<NoOrder, R>
Sourcepub fn total_order(self, _proof: ManualProof) -> Promises<TotalOrder, R>
pub fn total_order(self, _proof: ManualProof) -> Promises<TotalOrder, R>
Promises the order: for a channel, each sender’s messages are delivered in the order it sent them; for an input, the stream’s order is the order to process; for a membership stream, each member’s events arrive in the order they happened.
Source§impl<O> Promises<O, AtLeastOnce>
impl<O> Promises<O, AtLeastOnce>
Sourcepub fn exactly_once(self, _proof: ManualProof) -> Promises<O, ExactlyOnce>
pub fn exactly_once(self, _proof: ManualProof) -> Promises<O, ExactlyOnce>
Promises that nothing is delivered twice: a channel never duplicates a message (for example by resending it after a reconnect), and every element of an input is a distinct event.
Trait Implementations§
Auto Trait Implementations§
impl<O, R> Freeze for Promises<O, R>
impl<O, R> RefUnwindSafe for Promises<O, R>
impl<O, R> Send for Promises<O, R>
impl<O, R> Sync for Promises<O, R>
impl<O, R> Unpin for Promises<O, R>
impl<O, R> UnsafeUnpin for Promises<O, R>
impl<O, R> UnwindSafe for Promises<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.