pub enum ApplyError {
Failed(Arc<dyn EffectError>),
Retry,
}Expand description
Outcome of CapturedEffect::apply. Distinguishes a side-effect failure (terminal) from a
soft failure where the captured form had no content and storage state diverged between
capture and apply (recoverable via Effects::apply’s invalidator path).
Variants§
Failed(Arc<dyn EffectError>)
The side effect itself failed.
Retry
Capture short-circuited content materialization (observed Applied { matching } in
storage), but by apply time the storage state had diverged and we have no content to
re-apply. Effects::apply should invalidate the producing operation and return
EffectsError::Retry.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ApplyError
impl !UnwindSafe for ApplyError
impl Freeze for ApplyError
impl Send for ApplyError
impl Sync for ApplyError
impl Unpin for ApplyError
impl UnsafeUnpin for ApplyError
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 more