pub struct Refusal {
pub code: i32,
pub message: String,
}Expand description
Why a restore stopped.
code is the process exit code, and the three are genuinely
different outcomes: 1 is “this backup or this target is wrong”, 3 is
“the backup is fine and something only you can supply is missing”.
Collapsing them would make the documented recovery path — stop,
supply the key, re-run — indistinguishable from a corrupt backup.
Fields§
§code: i32Process exit code: 1 a check failed, 2 usage, 3 a decision.
message: StringWhat to print, already addressed to a person.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Refusal
impl RefUnwindSafe for Refusal
impl Send for Refusal
impl Sync for Refusal
impl Unpin for Refusal
impl UnsafeUnpin for Refusal
impl UnwindSafe for Refusal
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