pub struct SystemImageBuilder { /* private fields */ }Expand description
Builds a system_image package.
Implementations§
Source§impl SystemImageBuilder
impl SystemImageBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Returns an empty SystemImageBuilder configured with no static or cache package.
Sourcepub fn static_package(self, path: PackagePath, hash: Hash) -> Self
pub fn static_package(self, path: PackagePath, hash: Hash) -> Self
Appends the given path and hash to the static packages manifest.
Sourcepub fn static_packages(self, static_packages: &[&Package]) -> Self
pub fn static_packages(self, static_packages: &[&Package]) -> Self
Use the supplied static_packages with the system image. Call at most once and not after
calling Self::static_package.
Sourcepub fn cache_package(self, path: PackagePath, hash: Hash) -> Self
pub fn cache_package(self, path: PackagePath, hash: Hash) -> Self
Appends the given path and hash to the cache packages manifest, creating the manifest if it was not already staged to be added to the package.
Sourcepub fn cache_packages(self, cache_packages: &[&Package]) -> Self
pub fn cache_packages(self, cache_packages: &[&Package]) -> Self
Use the supplied cache_packages with the system image. Call at most once and not after
calling Self::cache_package.
Sourcepub fn anchored_package(
self,
package_set_type: AnchoredPackageSetType,
path: PackagePath,
hash: Hash,
) -> Self
pub fn anchored_package( self, package_set_type: AnchoredPackageSetType, path: PackagePath, hash: Hash, ) -> Self
Appends the given package set type, path and hash to the anchored packages manifest, creating the manifest if it was not already staged to be added to the package.
Sourcepub fn pkgfs_disable_executability_restrictions(self) -> Self
pub fn pkgfs_disable_executability_restrictions(self) -> Self
Disable enforcement of executability restrictions for packages that are not base or allowlisted.
Trait Implementations§
Source§impl Default for SystemImageBuilder
impl Default for SystemImageBuilder
Source§fn default() -> SystemImageBuilder
fn default() -> SystemImageBuilder
Auto Trait Implementations§
impl Freeze for SystemImageBuilder
impl RefUnwindSafe for SystemImageBuilder
impl Send for SystemImageBuilder
impl Sync for SystemImageBuilder
impl Unpin for SystemImageBuilder
impl UnwindSafe for SystemImageBuilder
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
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
T to [Self]§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<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>
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>
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