pub enum DevKeyError {
Crypto {
op: &'static str,
source: SigstoreError,
},
Io {
op: &'static str,
path: PathBuf,
source: Error,
},
Trust(String),
}Expand description
Typed dev-key errors (bp-rust: a library’s public surface stays thiserror; anyhow is
for binary entry points). The CLI callers absorb this into anyhow at their edge.
Variants§
Crypto
A sigstore crypto operation failed (key generation, PEM encode/decode, signing).
Io
A key file could not be created, read, or written.
Trust(String)
The public key did not build a TrustPolicy — cannot happen for a key this module
generated, surfaced instead of unwrapped (TrustPolicy::from_pem_keys reports a plain
message, so no source chain to keep).
Trait Implementations§
Source§impl Debug for DevKeyError
impl Debug for DevKeyError
Source§impl Display for DevKeyError
impl Display for DevKeyError
Source§impl Error for DevKeyError
impl Error for DevKeyError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for DevKeyError
impl !UnwindSafe for DevKeyError
impl Freeze for DevKeyError
impl Send for DevKeyError
impl Sync for DevKeyError
impl Unpin for DevKeyError
impl UnsafeUnpin for DevKeyError
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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