pub enum Error {
VerificationFailed {
report: Box<ContainerVerification>,
},
ResourceLimit {
resource: &'static str,
required: u64,
limit: u64,
},
Io(Error),
PublishedButUnsynced {
result: Box<WriteResult>,
source: Error,
},
Zip(ZipError),
Malformed(String),
Unsupported(String),
Aborted,
}Expand description
Malformed, unsupported, cancelled, or unreadable evidence.
Variants§
VerificationFailed
Finalized staging failed verification and was not published.
Fields
report: Box<ContainerVerification>Complete available checks, resource errors and metadata diagnostics. The temporary container is removed; this report retains the evidence needed to distinguish mismatches, unreadable data and incomplete checks.
ResourceLimit
Collection stopped before exceeding an explicit resource budget.
Fields
Io(Error)
Backing I/O error.
PublishedButUnsynced
Output was published, but synchronizing its parent directory failed. Preserve the result and independently verify it before further use.
Fields
result: Box<WriteResult>Published path and source digests; output must not be overwritten.
Zip(ZipError)
ZIP structure or decoding error.
Malformed(String)
Invalid metadata, offsets, or references.
Unsupported(String)
Recognized feature outside this implementation’s supported profile.
Aborted
Cooperative cancellation.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more