pub struct BinaryDiscoveryContext {
pub current_exe: Option<PathBuf>,
pub home_dir: Option<PathBuf>,
}Expand description
Inputs to find_trusted_binary_with_context. Parameterized so
callers can inject synthetic paths in tests (and so the real
call site stays a thin wrapper over std::env::current_exe +
dirs::home_dir).
Fields§
§current_exe: Option<PathBuf>§home_dir: Option<PathBuf>Implementations§
Trait Implementations§
Source§impl Clone for BinaryDiscoveryContext
impl Clone for BinaryDiscoveryContext
Source§fn clone(&self) -> BinaryDiscoveryContext
fn clone(&self) -> BinaryDiscoveryContext
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 BinaryDiscoveryContext
impl Debug for BinaryDiscoveryContext
Source§impl Default for BinaryDiscoveryContext
impl Default for BinaryDiscoveryContext
Source§fn default() -> BinaryDiscoveryContext
fn default() -> BinaryDiscoveryContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BinaryDiscoveryContext
impl RefUnwindSafe for BinaryDiscoveryContext
impl Send for BinaryDiscoveryContext
impl Sync for BinaryDiscoveryContext
impl Unpin for BinaryDiscoveryContext
impl UnsafeUnpin for BinaryDiscoveryContext
impl UnwindSafe for BinaryDiscoveryContext
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