pub struct OtaEnvBuilder { /* private fields */ }Expand description
Helper for constructing OTAs.
Implementations§
Source§impl OtaEnvBuilder
impl OtaEnvBuilder
Sourcepub fn new(outgoing_dir: Arc<Simple>) -> Self
pub fn new(outgoing_dir: Arc<Simple>) -> Self
Create a new OtaEnvBuilder. Requires an outgoing_dir which is served
by an instantiation of a Rust VFS tied to this component’s outgoing
directory. This is required in order to prepare the outgoing directory
with capabilities like directories and storage for the pkg-recovery.cm
component which will be created as a child.
Sourcepub fn devhost(self, cfg: DevhostConfig) -> Self
pub fn devhost(self, cfg: DevhostConfig) -> Self
Use the given |DevhostConfig| to run an OTA.
Sourcepub fn omaha_config(self, omaha_config: OmahaConfig) -> Self
pub fn omaha_config(self, omaha_config: OmahaConfig) -> Self
Use the given |OmahaConfig| to run an OTA.
Sourcepub fn blobfs_proxy(self, blobfs_proxy: DirectoryProxy) -> Self
pub fn blobfs_proxy(self, blobfs_proxy: DirectoryProxy) -> Self
Use the given StorageType as the storage target.
Auto Trait Implementations§
impl Freeze for OtaEnvBuilder
impl !RefUnwindSafe for OtaEnvBuilder
impl Send for OtaEnvBuilder
impl Sync for OtaEnvBuilder
impl Unpin for OtaEnvBuilder
impl UnsafeUnpin for OtaEnvBuilder
impl !UnwindSafe for OtaEnvBuilder
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> 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>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.