Enum fidl_fuchsia_update_ext::State
source · pub enum State {
CheckingForUpdates,
ErrorCheckingForUpdate,
NoUpdateAvailable,
InstallationDeferredByPolicy(InstallationDeferredData),
InstallingUpdate(InstallingData),
WaitingForReboot(InstallingData),
InstallationError(InstallationErrorData),
}
Expand description
Wrapper type for fidl_fuchsia_update::State
which works with
event_queue
and [proptest
].
Use From
(and Into
) to convert between the fidl type and this one.
See fidl_fuchsia_update::State
for docs on what each state means.
Variants§
CheckingForUpdates
ErrorCheckingForUpdate
NoUpdateAvailable
InstallationDeferredByPolicy(InstallationDeferredData)
InstallingUpdate(InstallingData)
WaitingForReboot(InstallingData)
InstallationError(InstallationErrorData)
Implementations§
Trait Implementations§
source§impl Arbitrary for State
impl Arbitrary for State
§type Parameters = (<InstallationDeferredData as Arbitrary>::Parameters, <InstallingData as Arbitrary>::Parameters, <InstallingData as Arbitrary>::Parameters, <InstallationErrorData as Arbitrary>::Parameters)
type Parameters = (<InstallationDeferredData as Arbitrary>::Parameters, <InstallingData as Arbitrary>::Parameters, <InstallingData as Arbitrary>::Parameters, <InstallationErrorData as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = TupleUnion<((u32, Arc<fn() -> State>), (u32, Arc<fn() -> State>), (u32, Arc<fn() -> State>), (u32, Arc<Map<<InstallationDeferredData as Arbitrary>::Strategy, fn(_: InstallationDeferredData) -> State>>), (u32, Arc<Map<<InstallingData as Arbitrary>::Strategy, fn(_: InstallingData) -> State>>), (u32, Arc<Map<<InstallingData as Arbitrary>::Strategy, fn(_: InstallingData) -> State>>), (u32, Arc<Map<<InstallationErrorData as Arbitrary>::Strategy, fn(_: InstallationErrorData) -> State>>))>
type Strategy = TupleUnion<((u32, Arc<fn() -> State>), (u32, Arc<fn() -> State>), (u32, Arc<fn() -> State>), (u32, Arc<Map<<InstallationDeferredData as Arbitrary>::Strategy, fn(_: InstallationDeferredData) -> State>>), (u32, Arc<Map<<InstallingData as Arbitrary>::Strategy, fn(_: InstallingData) -> State>>), (u32, Arc<Map<<InstallingData as Arbitrary>::Strategy, fn(_: InstallingData) -> State>>), (u32, Arc<Map<<InstallationErrorData as Arbitrary>::Strategy, fn(_: InstallationErrorData) -> State>>))>
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 PartialEq for State
impl PartialEq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)