pub enum HashReadStatus {
Read {
sha256: String,
},
Unreadable {
reason: String,
},
NotAttempted {
reason: String,
},
}Expand description
The outcome of reading a resolved tool’s bytes for hashing (T17.3 — replaces the old habit of putting
the non-hash literal "unreadable" into a field named sha256). The field is now honest by type.
Variants§
Read
The bytes were read and hashed.
Unreadable
The resolved file exists but could not be read (permissions, race, …).
NotAttempted
No hash was attempted (not reached in the current flow — a resolved tool is always hashed — but kept so a future caller that defers hashing has an honest value rather than a fake hash).
Trait Implementations§
Source§impl Clone for HashReadStatus
impl Clone for HashReadStatus
Source§fn clone(&self) -> HashReadStatus
fn clone(&self) -> HashReadStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HashReadStatus
impl Debug for HashReadStatus
impl Eq for HashReadStatus
Source§impl PartialEq for HashReadStatus
impl PartialEq for HashReadStatus
Source§fn eq(&self, other: &HashReadStatus) -> bool
fn eq(&self, other: &HashReadStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HashReadStatus
Auto Trait Implementations§
impl Freeze for HashReadStatus
impl RefUnwindSafe for HashReadStatus
impl Send for HashReadStatus
impl Sync for HashReadStatus
impl Unpin for HashReadStatus
impl UnsafeUnpin for HashReadStatus
impl UnwindSafe for HashReadStatus
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