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 async fn anchored_packages(
&self,
) -> Result<AnchoredPackages, AnchoredPackagesError>
pub async fn anchored_packages( &self, ) -> Result<AnchoredPackages, AnchoredPackagesError>
Load data/anchored_packages.json.
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more