pub struct Facts<'a> {
pub machine: Machine<'a>,
pub present: &'a dyn Fn(&str) -> bool,
pub free_bytes: &'a dyn Fn(&Path) -> Option<u64>,
pub gpus: &'a dyn Fn() -> Vec<String>,
pub repositories: &'a dyn Fn() -> Option<Vec<String>>,
pub sizes: &'a dyn Fn(PackageManager, &[String]) -> Option<u64>,
pub active_runs: &'a dyn Fn() -> Vec<String>,
}Expand description
What the checks ask the machine; tests answer instead.
Fields§
§machine: Machine<'a>Package questions, as planning asks them.
present: &'a dyn Fn(&str) -> boolWhether a command, or an absolute path, is present.
free_bytes: &'a dyn Fn(&Path) -> Option<u64>Free bytes on the file system holding a path.
gpus: &'a dyn Fn() -> Vec<String>The graphics vendors found (nvidia, amd, intel).
repositories: &'a dyn Fn() -> Option<Vec<String>>The enabled pacman repositories; None off Arch or when unreadable.
sizes: &'a dyn Fn(PackageManager, &[String]) -> Option<u64>The installed size in bytes of packages not yet installed, when the package manager can say.
active_runs: &'a dyn Fn() -> Vec<String>Other HelixForge runs still going, by their entries’ names.
Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Facts<'a>
impl<'a> !Send for Facts<'a>
impl<'a> !Sync for Facts<'a>
impl<'a> !UnwindSafe for Facts<'a>
impl<'a> Freeze for Facts<'a>
impl<'a> Unpin for Facts<'a>
impl<'a> UnsafeUnpin for Facts<'a>
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.