pub struct RecoverableError(/* private fields */);Expand description
A primop error that is not memoized in the thunk that triggered it, allowing the thunk to be forced again.
Since Nix 2.34,
primop errors are memoized by default: once a thunk fails, forcing it
again returns the same error. Use RecoverableError for errors that
are transient, so the caller can retry.
On Nix < 2.34, all errors are already recoverable, so this type has no additional effect.
Available since nix-bindings-expr 0.2.1.
Implementations§
Trait Implementations§
Source§impl Debug for RecoverableError
impl Debug for RecoverableError
Source§impl Display for RecoverableError
impl Display for RecoverableError
Source§impl Error for RecoverableError
impl Error for RecoverableError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for RecoverableError
impl RefUnwindSafe for RecoverableError
impl Send for RecoverableError
impl Sync for RecoverableError
impl Unpin for RecoverableError
impl UnsafeUnpin for RecoverableError
impl UnwindSafe for RecoverableError
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