pub struct V2Error {
pub class: V2ErrorClass,
pub message: String,
/* private fields */
}Expand description
A classified Protocol v2 failure. class is the conformance-relevant
part; message is diagnostic text only.
Internally an error may be created before its class is known (the Go
reference’s unclassified error, later passed through v2Classify). Such an
error carries a provisional malformed class until the first
V2Error::classify fixes it, so a public API never reports a class
outside SPEC-v2 §2.7.
Fields§
§class: V2ErrorClass§message: StringImplementations§
Trait Implementations§
impl Eq for V2Error
Source§impl Error for V2Error
impl Error for V2Error
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<V2Error> for V2SignError
impl From<V2Error> for V2SignError
Source§impl From<V2Error> for SecurityJournalStoreErrorV2
impl From<V2Error> for SecurityJournalStoreErrorV2
Source§impl From<V2Error> for V2StoreError
impl From<V2Error> for V2StoreError
impl StructuralPartialEq for V2Error
Auto Trait Implementations§
impl Freeze for V2Error
impl RefUnwindSafe for V2Error
impl Send for V2Error
impl Sync for V2Error
impl Unpin for V2Error
impl UnsafeUnpin for V2Error
impl UnwindSafe for V2Error
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