pub struct RestartSink;Expand description
Akka-style restarting sink wrapper.
Datum’s current sink wrapper accepts factories that materialize
StreamCompletion<NotUsed> so the outer sink can wait for each child sink
before deciding whether to restart. Like Akka’s restart sink, upstream is
backpressured during backoff.
Implementations§
Source§impl RestartSink
impl RestartSink
pub fn with_backoff<In, F>( settings: RestartSettings, factory: F, ) -> Sink<In, StreamCompletion<NotUsed>>
Auto Trait Implementations§
impl Freeze for RestartSink
impl RefUnwindSafe for RestartSink
impl Send for RestartSink
impl Sync for RestartSink
impl Unpin for RestartSink
impl UnsafeUnpin for RestartSink
impl UnwindSafe for RestartSink
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage