pub struct RecoverySpec {
pub name: String,
pub version: u64,
pub max_bytes: usize,
pub paths: PathExtractor,
pub exact_path: Option<PathBuf>,
}Expand description
What a recovery store accepts and how it finds file paths inside a snapshot.
Fields§
§name: StringFile stem, e.g. setup-recovery; the default file is <state>/recovery/<name>-v<version>.json.
version: u64§max_bytes: usize§paths: PathExtractorFile paths named by a parsed snapshot (anything starting untitled: is ignored).
exact_path: Option<PathBuf>Exact snapshot file, used instead of the default location when set.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RecoverySpec
impl !UnwindSafe for RecoverySpec
impl Freeze for RecoverySpec
impl Send for RecoverySpec
impl Sync for RecoverySpec
impl Unpin for RecoverySpec
impl UnsafeUnpin for RecoverySpec
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