pub struct SystemImage { /* private fields */ }
Expand description
System image package.
Implementations§
Source§impl SystemImage
impl SystemImage
pub async fn new( blobfs: Client, boot_args: &ArgumentsProxy, ) -> Result<Self, Error>
Sourcepub fn from_root_dir(root_dir: Arc<RootDir<Client>>) -> Self
pub fn from_root_dir(root_dir: Arc<RootDir<Client>>) -> Self
Make a SystemImage
from a RootDir
for the system_image
package.
pub fn load_executability_restrictions(&self) -> ExecutabilityRestrictions
Sourcepub async fn cache_packages(
&self,
) -> Result<CachePackages, CachePackagesInitError>
pub async fn cache_packages( &self, ) -> Result<CachePackages, CachePackagesInitError>
Load data/cache_packages.json
.
Sourcepub async fn static_packages(
&self,
) -> Result<StaticPackages, StaticPackagesInitError>
pub async fn static_packages( &self, ) -> Result<StaticPackages, StaticPackagesInitError>
Load data/static_packages
.
Sourcepub fn into_root_dir(self) -> Arc<RootDir<Client>>
pub fn into_root_dir(self) -> Arc<RootDir<Client>>
Consume self and return the contained package_directory::RootDir
.
Sourcepub fn package_path() -> PackagePath
pub fn package_path() -> PackagePath
The package path of the system image package.
Auto Trait Implementations§
impl Freeze for SystemImage
impl !RefUnwindSafe for SystemImage
impl Send for SystemImage
impl Sync for SystemImage
impl Unpin for SystemImage
impl !UnwindSafe for SystemImage
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