pub struct Acknowledgements<O, R> { /* private fields */ }Expand description
What a host acknowledges about a stream the dataflow provides (an output, or the stream sent
on a network channel): each way it may be weaker than ordered and exactly-once. The stream’s
type already says what it may do, so an acknowledgement needs no justification: calling it is
the host’s agreement, and a stream that becomes weaker fails the host’s build until the host
acknowledges the change. An
EmbeddedOutputChannel or EmbeddedNetworkOutputChannel is built from a sink and the Acknowledgements that
cover what its marker’s stream may do.
Implementations§
Source§impl<R> Acknowledgements<TotalOrder, R>
impl<R> Acknowledgements<TotalOrder, R>
Sourcepub fn no_order(self) -> Acknowledgements<NoOrder, R>
pub fn no_order(self) -> Acknowledgements<NoOrder, R>
Acknowledges that elements may arrive in any order.
Source§impl<O> Acknowledgements<O, ExactlyOnce>
impl<O> Acknowledgements<O, ExactlyOnce>
Sourcepub fn at_least_once(self) -> Acknowledgements<O, AtLeastOnce>
pub fn at_least_once(self) -> Acknowledgements<O, AtLeastOnce>
Acknowledges that an element may arrive more than once.
Trait Implementations§
Source§impl Default for Acknowledgements<TotalOrder, ExactlyOnce>
impl Default for Acknowledgements<TotalOrder, ExactlyOnce>
Auto Trait Implementations§
impl<O, R> Freeze for Acknowledgements<O, R>
impl<O, R> RefUnwindSafe for Acknowledgements<O, R>
impl<O, R> Send for Acknowledgements<O, R>
impl<O, R> Sync for Acknowledgements<O, R>
impl<O, R> Unpin for Acknowledgements<O, R>
impl<O, R> UnsafeUnpin for Acknowledgements<O, R>
impl<O, R> UnwindSafe for Acknowledgements<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.