pub enum EvidenceError {
Show 14 variants
Unserved,
Undeclared {
kind: DefinitionId,
},
Unsupported,
Foreign,
Conflict {
kind: DefinitionId,
scope: String,
key: String,
},
Unknown,
Mismatched {
kind: DefinitionId,
named: DefinitionId,
},
Malformed {
kind: DefinitionId,
cause: String,
},
Finalizing,
Bound {
requested: usize,
ceiling: usize,
},
Corrupt {
written: u64,
found: u64,
},
Unreadable(String),
Unwritable(String),
Unavailable,
}Variants§
Unserved
Undeclared
Fields
§
kind: DefinitionIdUnsupported
Foreign
Conflict
Unknown
Mismatched
Malformed
Finalizing
Bound
Corrupt
Unreadable(String)
Unwritable(String)
Implementations§
Source§impl EvidenceError
impl EvidenceError
pub fn unreadable(cause: impl Display) -> Self
pub fn unwritable(cause: impl Display) -> Self
Trait Implementations§
Source§impl Clone for EvidenceError
impl Clone for EvidenceError
Source§impl Debug for EvidenceError
impl Debug for EvidenceError
Source§impl Display for EvidenceError
impl Display for EvidenceError
impl Eq for EvidenceError
Source§impl Error for EvidenceError
impl Error for EvidenceError
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 PartialEq for EvidenceError
impl PartialEq for EvidenceError
impl StructuralPartialEq for EvidenceError
Auto Trait Implementations§
impl Freeze for EvidenceError
impl RefUnwindSafe for EvidenceError
impl Send for EvidenceError
impl Sync for EvidenceError
impl Unpin for EvidenceError
impl UnsafeUnpin for EvidenceError
impl UnwindSafe for EvidenceError
Blanket Implementations§
impl<T> Allocation for T
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