#[non_exhaustive]pub enum RootAttestationError {
Show 21 variants
RootNotFound {
root: PathBuf,
},
RootSymlink {
root: PathBuf,
},
RootNotDirectory {
root: PathBuf,
},
MarkerMissing {
marker: FolderbaseRootMarker,
},
MarkerSymlink {
marker: FolderbaseRootMarker,
},
MarkerWrongType {
marker: FolderbaseRootMarker,
},
ManifestTooLarge {
maximum_bytes: u64,
},
ManifestInvalidJson,
ManifestDuplicateField,
ManifestFieldMissing {
field: &'static str,
},
ManifestFieldWrongType {
field: &'static str,
},
InvalidFolderbaseId,
InvalidProtocolVersion,
UnsupportedProtocolVersion,
InvalidCaptureIgnorePolicy,
InvalidManifestShape,
InvalidProtocolUpgradeReceipt,
ProtocolUpgradeRecoveryRequired,
RootChangedDuringAttestation,
PhysicalIdentityUnavailable,
Io {
path: PathBuf,
source: Error,
},
}Expand description
Failures produced while attesting one exact Folderbase root.
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.
RootNotFound
RootSymlink
RootNotDirectory
MarkerMissing
Fields
§
marker: FolderbaseRootMarkerMarkerSymlink
Fields
§
marker: FolderbaseRootMarkerMarkerWrongType
Fields
§
marker: FolderbaseRootMarkerManifestTooLarge
ManifestInvalidJson
ManifestDuplicateField
ManifestFieldMissing
ManifestFieldWrongType
InvalidFolderbaseId
InvalidProtocolVersion
UnsupportedProtocolVersion
InvalidCaptureIgnorePolicy
InvalidManifestShape
InvalidProtocolUpgradeReceipt
ProtocolUpgradeRecoveryRequired
RootChangedDuringAttestation
Io
Implementations§
Trait Implementations§
Source§impl Debug for RootAttestationError
impl Debug for RootAttestationError
Source§impl Display for RootAttestationError
impl Display for RootAttestationError
Source§impl Error for RootAttestationError
impl Error for RootAttestationError
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<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.
Source§impl From<RootAttestationError> for RootReconstructionError
impl From<RootAttestationError> for RootReconstructionError
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 RootAttestationError
impl !UnwindSafe for RootAttestationError
impl Freeze for RootAttestationError
impl Send for RootAttestationError
impl Sync for RootAttestationError
impl Unpin for RootAttestationError
impl UnsafeUnpin for RootAttestationError
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