pub enum BundleError {
Storage(StorageError),
Sign(SignError),
Io(Error),
Json(Error),
ArtifactNotFound(String),
InvalidBundle(String),
UnverifiedEnvelope {
index: usize,
source: VerifyError,
},
NoTrustRoot,
}Expand description
Error from bundle operations.
Variants§
Storage(StorageError)
Sign(SignError)
Io(Error)
Json(Error)
ArtifactNotFound(String)
InvalidBundle(String)
UnverifiedEnvelope
A signature on an imported envelope did not verify against the configured trust root. Carries the offending envelope’s index in the export (0 = bundle envelope, 1..=N = artifact envelopes) and the underlying verification error.
NoTrustRoot
import was called with an empty trust root. Without trusted keys
there is nothing to verify signatures against, so import would
degenerate to “trust whatever the file says” — refused loudly.
Trait Implementations§
Source§impl Debug for BundleError
impl Debug for BundleError
Source§impl Display for BundleError
impl Display for BundleError
Source§impl Error for BundleError
impl Error for BundleError
1.30.0 · 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<Error> for BundleError
impl From<Error> for BundleError
Source§impl From<Error> for BundleError
impl From<Error> for BundleError
Source§impl From<SignError> for BundleError
impl From<SignError> for BundleError
Source§impl From<StorageError> for BundleError
impl From<StorageError> for BundleError
Source§fn from(e: StorageError) -> Self
fn from(e: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BundleError
impl !RefUnwindSafe for BundleError
impl Send for BundleError
impl Sync for BundleError
impl Unpin for BundleError
impl UnsafeUnpin for BundleError
impl !UnwindSafe for BundleError
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