pub struct RestartFlow;Expand description
Akka-style restarting flow wrapper.
Restart flows are lossy across restarts: the element that triggers the wrapped flow failure, and any elements already pulled by that wrapped flow, are dropped. During backoff, downstream demand is held until the central materializer timer fires and the child flow is rematerialized.
Implementations§
Source§impl RestartFlow
impl RestartFlow
pub fn with_backoff<In, Out, Mat, F>( settings: RestartSettings, factory: F, ) -> Flow<In, Out>
pub fn on_failures_with_backoff<In, Out, Mat, F>( settings: RestartSettings, factory: F, ) -> Flow<In, Out>
Auto Trait Implementations§
impl Freeze for RestartFlow
impl RefUnwindSafe for RestartFlow
impl Send for RestartFlow
impl Sync for RestartFlow
impl Unpin for RestartFlow
impl UnsafeUnpin for RestartFlow
impl UnwindSafe for RestartFlow
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