#[non_exhaustive]pub enum FolderbaseCaptureError {
Show 31 variants
RootAttestation(RootAttestationError),
RequiredMarker(PathBuf),
UnsafePortablePath(PathBuf),
PortablePathCollision {
existing: String,
path: String,
},
UnsafeSymlinkTarget(PathBuf),
IgnorePolicyTooLarge {
maximum_bytes: u64,
},
IgnorePolicyNotUtf8,
InvalidIgnorePolicy(String),
LocalHeadTooLarge {
maximum_bytes: u64,
},
UnsafeLocalHead,
InvalidLocalHead(String),
PlanningStateChanged,
CaptureStateChanged(PathBuf),
PlanStoreMismatch,
LocalHeadChanged,
InvalidPriorLocalHead(String),
PriorBindingHidden(PathBuf),
InvalidCaptureTransaction(String),
MissingLocalHead,
TombstoneNotFound(PathBuf),
UnsupportedTombstoneKind(PathBuf),
InvalidRestoreAncestry(String),
InvalidRestoreTransaction(String),
RestoreAuthorityMaintenanceRequired {
maximum: usize,
},
RestoreNamespaceRepairRequired(PathBuf),
RestoreTargetOccupied(PathBuf),
ConflictingTransaction(&'static str),
LocalStore(FolderbaseError),
FolderbaseVersion(FolderbaseVersionError),
InventoryLimitExceeded {
limit: CapturePlanLimitKind,
maximum: u64,
path: PathBuf,
},
Io {
path: PathBuf,
source: Error,
},
}Expand description
Failures that prevent a trustworthy metadata-only capture plan.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RootAttestation(RootAttestationError)
RequiredMarker(PathBuf)
UnsafePortablePath(PathBuf)
PortablePathCollision
UnsafeSymlinkTarget(PathBuf)
IgnorePolicyTooLarge
IgnorePolicyNotUtf8
InvalidIgnorePolicy(String)
LocalHeadTooLarge
UnsafeLocalHead
InvalidLocalHead(String)
PlanningStateChanged
CaptureStateChanged(PathBuf)
PlanStoreMismatch
LocalHeadChanged
InvalidPriorLocalHead(String)
PriorBindingHidden(PathBuf)
InvalidCaptureTransaction(String)
MissingLocalHead
TombstoneNotFound(PathBuf)
UnsupportedTombstoneKind(PathBuf)
InvalidRestoreAncestry(String)
InvalidRestoreTransaction(String)
RestoreAuthorityMaintenanceRequired
RestoreNamespaceRepairRequired(PathBuf)
RestoreTargetOccupied(PathBuf)
ConflictingTransaction(&'static str)
LocalStore(FolderbaseError)
FolderbaseVersion(FolderbaseVersionError)
InventoryLimitExceeded
Io
Trait Implementations§
Source§impl Debug for FolderbaseCaptureError
impl Debug for FolderbaseCaptureError
Source§impl Display for FolderbaseCaptureError
impl Display for FolderbaseCaptureError
Source§impl Error for FolderbaseCaptureError
impl Error for FolderbaseCaptureError
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()
Source§impl From<FolderbaseCaptureError> for QueryError
impl From<FolderbaseCaptureError> for QueryError
Source§fn from(source: FolderbaseCaptureError) -> Self
fn from(source: FolderbaseCaptureError) -> Self
Converts to this type from the input type.
Source§impl From<FolderbaseError> for FolderbaseCaptureError
impl From<FolderbaseError> for FolderbaseCaptureError
Source§fn from(source: FolderbaseError) -> Self
fn from(source: FolderbaseError) -> Self
Converts to this type from the input type.
Source§impl From<FolderbaseVersionError> for FolderbaseCaptureError
impl From<FolderbaseVersionError> for FolderbaseCaptureError
Source§fn from(source: FolderbaseVersionError) -> Self
fn from(source: FolderbaseVersionError) -> Self
Converts to this type from the input type.
Source§impl From<RootAttestationError> for FolderbaseCaptureError
impl From<RootAttestationError> for FolderbaseCaptureError
Source§fn from(source: RootAttestationError) -> Self
fn from(source: RootAttestationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FolderbaseCaptureError
impl !UnwindSafe for FolderbaseCaptureError
impl Freeze for FolderbaseCaptureError
impl Send for FolderbaseCaptureError
impl Sync for FolderbaseCaptureError
impl Unpin for FolderbaseCaptureError
impl UnsafeUnpin for FolderbaseCaptureError
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