Struct system_env::System
source · pub struct System {
pub arch: SystemArch,
pub manager: SystemPackageManager,
pub os: SystemOS,
}
Fields§
§arch: SystemArch
§manager: SystemPackageManager
§os: SystemOS
Implementations§
source§impl System
impl System
pub fn new() -> Result<Self, Error>
pub fn with_manager(manager: SystemPackageManager) -> Self
pub fn get_install_package_command( &self, dep_config: &DependencyConfig, interactive: bool ) -> Result<Vec<String>, Error>
pub fn get_update_index_command(&self, interactive: bool) -> Option<Vec<String>>
pub fn resolve_dependencies( &self, deps: Vec<SystemDependency> ) -> Vec<DependencyConfig>
Auto Trait Implementations§
impl RefUnwindSafe for System
impl Send for System
impl Sync for System
impl Unpin for System
impl UnwindSafe for System
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