pub enum HashError {
Show 21 variants
InvalidHashId(&'static str),
UnknownVersion(String),
UnknownKind(String),
UnexpectedKind {
expected: String,
actual: String,
},
UnknownAlgorithm(String),
ProfileMismatch {
kind: String,
expected: String,
actual: String,
},
InvalidJson(String),
DuplicateJsonKey(String),
UnsafeJsonInteger(String),
NonFiniteNumber,
DuplicateTupleLabel(String),
InvalidArtifactPath {
path: String,
reason: &'static str,
},
DuplicateArtifactPath(String),
SymlinkArtifact(String),
InvalidSelfHashProjection,
InvalidProjection {
projection: &'static str,
reason: String,
},
MissingProgramId,
InvalidProgramIdLocation {
location: &'static str,
},
ConflictingProgramIds(String),
InvalidIdl(String),
Serialization(String),
}Variants§
InvalidHashId(&'static str)
UnknownVersion(String)
UnknownKind(String)
UnexpectedKind
UnknownAlgorithm(String)
ProfileMismatch
InvalidJson(String)
DuplicateJsonKey(String)
UnsafeJsonInteger(String)
NonFiniteNumber
DuplicateTupleLabel(String)
InvalidArtifactPath
DuplicateArtifactPath(String)
SymlinkArtifact(String)
InvalidSelfHashProjection
InvalidProjection
MissingProgramId
InvalidProgramIdLocation
ConflictingProgramIds(String)
InvalidIdl(String)
Serialization(String)
Implementations§
Trait Implementations§
Source§impl Error for HashError
impl Error for HashError
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()
Auto Trait Implementations§
impl Freeze for HashError
impl RefUnwindSafe for HashError
impl Send for HashError
impl Sync for HashError
impl Unpin for HashError
impl UnsafeUnpin for HashError
impl UnwindSafe for HashError
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