pub struct Options {
pub initiator: Initiator,
pub allow_attach_to_existing_attempt: bool,
pub should_write_recovery: 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.
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)
type Parameters = (<Initiator as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters)
The type of parameters that
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), fn((Initiator, bool, bool)) -> Options>
type Strategy = Map<(<Initiator as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy), fn((Initiator, bool, bool)) -> Options>
The type of
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl TryFrom<Options> for Options
impl TryFrom<Options> for Options
Source§type Error = OptionsParseError
type Error = OptionsParseError
The type returned in the event of a conversion error.
Source§fn try_from(data: Options) -> Result<Self, OptionsParseError>
fn try_from(data: Options) -> Result<Self, OptionsParseError>
Performs the conversion.
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 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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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,
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