pub struct BinaryInstance {
pub command: String,
pub path: PathBuf,
pub resolved_path: PathBuf,
pub source: BinarySource,
pub version: Option<String>,
pub binary_size: u64,
pub binary_type: BinaryType,
pub in_path: bool,
pub is_active: bool,
}Expand description
A single binary instance found on the system
Fields§
§command: StringCommand name (e.g., “python3”)
path: PathBufFull path to binary
resolved_path: PathBufResolved path after following symlinks
source: BinarySourceSource of this binary
version: Option<String>Version string (if detected)
binary_size: u64Binary size in bytes
binary_type: BinaryTypeType of binary
in_path: boolIs this binary in the current PATH?
is_active: boolIs this the active/default version?
Trait Implementations§
Source§impl Clone for BinaryInstance
impl Clone for BinaryInstance
Source§fn clone(&self) -> BinaryInstance
fn clone(&self) -> BinaryInstance
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BinaryInstance
impl RefUnwindSafe for BinaryInstance
impl Send for BinaryInstance
impl Sync for BinaryInstance
impl Unpin for BinaryInstance
impl UnwindSafe for BinaryInstance
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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