pub enum FolderbaseError {
Show 32 variants
InvalidRoot(PathBuf),
UnsafePath(PathBuf),
ProviderControlled(PathBuf),
PlanRootMismatch {
planned_root: PathBuf,
actual_root: PathBuf,
},
PlanRootIdentityChanged(PathBuf),
PlanPreconditionChanged(PathBuf),
InvalidInitializationPlanDigest,
InitializationPlanChanged {
expected: String,
actual: String,
},
InvalidProtocolUpgradePlanDigest,
ProtocolUpgradePlanChanged {
expected: String,
actual: String,
},
ProtocolUpgradeBlocked(&'static str),
RecoveryRequired {
work: String,
},
InitializationDestinationChanged(PathBuf),
InitializationInventoryLimitExceeded {
limit: InitializationInventoryLimitKind,
maximum: u64,
},
NestedBoundaryWorkLimitExceeded {
path: PathBuf,
maximum: u64,
},
InvalidMigrationState {
expected: &'static str,
actual: String,
},
MigrationApprovalMismatch,
MigrationSourceChanged(PathBuf),
MigrationVerificationFailed(PathBuf),
WouldOverwrite(PathBuf),
RestoreNamespaceRepairRequired(PathBuf),
UnsupportedMigrationFilesystem {
path: PathBuf,
reason: String,
},
StructuralTemplateChangeRequiresApproval,
TemplateExpansionBlocked,
TemplateRequestTooLarge,
InvalidTemplateRequest(String),
InvalidTemplateExpansionPlanDigest,
TemplateExpansionPlanChanged {
expected: String,
actual: String,
},
WorkspaceContentChanged(PathBuf),
InvalidRecord {
path: PathBuf,
message: String,
},
Io {
path: PathBuf,
source: Error,
},
Json {
path: PathBuf,
source: Error,
},
}Expand description
Errors that prevent an operation from producing a trustworthy result.
Variants§
InvalidRoot(PathBuf)
UnsafePath(PathBuf)
ProviderControlled(PathBuf)
PlanRootMismatch
PlanRootIdentityChanged(PathBuf)
PlanPreconditionChanged(PathBuf)
InvalidInitializationPlanDigest
InitializationPlanChanged
InvalidProtocolUpgradePlanDigest
ProtocolUpgradePlanChanged
ProtocolUpgradeBlocked(&'static str)
RecoveryRequired
InitializationDestinationChanged(PathBuf)
InitializationInventoryLimitExceeded
NestedBoundaryWorkLimitExceeded
InvalidMigrationState
MigrationApprovalMismatch
MigrationSourceChanged(PathBuf)
MigrationVerificationFailed(PathBuf)
WouldOverwrite(PathBuf)
RestoreNamespaceRepairRequired(PathBuf)
UnsupportedMigrationFilesystem
StructuralTemplateChangeRequiresApproval
TemplateExpansionBlocked
TemplateRequestTooLarge
InvalidTemplateRequest(String)
InvalidTemplateExpansionPlanDigest
TemplateExpansionPlanChanged
WorkspaceContentChanged(PathBuf)
InvalidRecord
Io
Json
Trait Implementations§
Source§impl Debug for FolderbaseError
impl Debug for FolderbaseError
Source§impl Display for FolderbaseError
impl Display for FolderbaseError
Source§impl Error for FolderbaseError
impl Error for FolderbaseError
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<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<FolderbaseError> for RootReconstructionError
impl From<FolderbaseError> for RootReconstructionError
Source§fn from(source: FolderbaseError) -> Self
fn from(source: FolderbaseError) -> Self
Converts to this type from the input type.
Source§impl From<FolderbaseError> for TransferSourceError
impl From<FolderbaseError> for TransferSourceError
Source§fn from(source: FolderbaseError) -> Self
fn from(source: FolderbaseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FolderbaseError
impl !UnwindSafe for FolderbaseError
impl Freeze for FolderbaseError
impl Send for FolderbaseError
impl Sync for FolderbaseError
impl Unpin for FolderbaseError
impl UnsafeUnpin for FolderbaseError
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