pub(crate) struct SelectionContext {
pub host_profile: HostProfile,
pub is_elevated: bool,
}Expand description
Selection inputs derived from the current runtime host state.
Fields§
§host_profile: HostProfileHost family and native architecture snapshot.
is_elevated: booltrue when the current process is running elevated.
Implementations§
Source§impl SelectionContext
impl SelectionContext
Sourcepub(crate) fn new(host_profile: HostProfile, is_elevated: bool) -> Self
pub(crate) fn new(host_profile: HostProfile, is_elevated: bool) -> Self
Build a new selection context from the current host state.
Trait Implementations§
Source§impl Clone for SelectionContext
impl Clone for SelectionContext
Source§fn clone(&self) -> SelectionContext
fn clone(&self) -> SelectionContext
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 moreSource§impl Debug for SelectionContext
impl Debug for SelectionContext
Source§impl PartialEq for SelectionContext
impl PartialEq for SelectionContext
impl Copy for SelectionContext
impl Eq for SelectionContext
impl StructuralPartialEq for SelectionContext
Auto Trait Implementations§
impl Freeze for SelectionContext
impl RefUnwindSafe for SelectionContext
impl Send for SelectionContext
impl Sync for SelectionContext
impl Unpin for SelectionContext
impl UnwindSafe for SelectionContext
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.