pub struct BinaryIdentity {
pub role: &'static str,
pub name: String,
pub path: String,
pub sha256: Option<String>,
pub running: bool,
pub note: Option<&'static str>,
}Expand description
One executable dev-prune owns on this machine, and the digest a scanner sees.
A separate type from TrustRow because the hash has to survive into --json as a
field of its own. Somebody comparing their copy against a published .sha256 should
not have to parse it back out of a sentence.
Fields§
§role: &'static strStable identifier for --json: what this executable is for, not what it is
named, so a reader does not have to know that devp is the short name.
name: StringThe file name, for a human.
path: StringWhere it is.
sha256: Option<String>Lower-case hex SHA-256, or None when the file could not be read.
running: boolWhether this is the executable answering right now.
note: Option<&'static str>Why this one’s digest differs from the others, when it does.
Implementations§
Auto Trait Implementations§
impl Freeze for BinaryIdentity
impl RefUnwindSafe for BinaryIdentity
impl Send for BinaryIdentity
impl Sync for BinaryIdentity
impl Unpin for BinaryIdentity
impl UnsafeUnpin for BinaryIdentity
impl UnwindSafe for BinaryIdentity
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> 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