pub struct Options {
pub initiator: Initiator,
pub allow_attach_to_existing_attempt: bool,
pub should_write_recovery: bool,
pub manifest_range: Option<Range>,
pub manifest_headers: Vec<Header>,
pub should_commit: bool,
}Expand description
Configuration options for an update attempt.
Fields§
§initiator: InitiatorWhat initiated this update attempt.
allow_attach_to_existing_attempt: boolIf an update is already in progress, it’s acceptable to instead attach a Monitor to that in-progress update instead of failing this request to install the update. Setting this option to true may convert situations that would have resulted in the ALREADY_IN_PROGRESS to be treated as non-error cases. A controller, if provided, will be ignored if the running update attempt already has a controller.
should_write_recovery: boolDetermines if the installer should update the recovery partition if an update is available. Defaults to true.
manifest_range: Option<Range>Optional range parameter to be used as the Range HTTP header when fetching the manifest.
manifest_headers: Vec<Header>Optional HTTP headers to be included when fetching the manifest.
should_commit: boolDetermines if the installer should commit the update by setting the
non-current configuration active. If false, the installer will not
reboot at the end of the update attempt, and any RebootController
passed to Installer.StartUpdate will be ignored. Defaults to true.
Implementations§
Trait Implementations§
Source§impl Arbitrary for Options
impl Arbitrary for Options
Source§type Parameters = (<Initiator as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters, <Option<Range> as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters)
type Parameters = (<Initiator as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters, <Option<Range> as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters)
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = Map<(<Initiator as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy, <Option<Range> as Arbitrary>::Strategy, BoxedStrategy<Vec<Header>>, <bool as Arbitrary>::Strategy), fn((Initiator, bool, bool, Option<Range>, Vec<Header>, bool)) -> Options>
type Strategy = Map<(<Initiator as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy, <Option<Range> as Arbitrary>::Strategy, BoxedStrategy<Vec<Header>>, <bool as Arbitrary>::Strategy), fn((Initiator, bool, bool, Option<Range>, Vec<Header>, bool)) -> Options>
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
§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]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