pub enum RebootControllerRequest {
Unblock {
control_handle: RebootControllerControlHandle,
},
Detach {
control_handle: RebootControllerControlHandle,
},
}Expand description
Controls the timing of the reboot into the updated system.
If the client end of a [RebootController] is closed without calling
[RebootController.Detach()], the update attempt will fall back to the
default behavior of rebooting as soon as it is ready.
Variants§
Unblock
Informs the update attempt that it may reboot when ready, unblocking a pending reboot if it is already ready to reboot.
If a controller is dropped without sending this request or
[RebootController.Detach], the update attempt reclaims control of the
timing of the reboot, behaving as if the update attempt was not given a
[RebootController] at all.
Fields
control_handle: RebootControllerControlHandleDetach
Informs the update attempt that it should wait to reboot indefinitely,
even if this [RebootController] connection is dropped.
Fields
control_handle: RebootControllerControlHandleImplementations§
Source§impl RebootControllerRequest
impl RebootControllerRequest
pub fn into_unblock(self) -> Option<RebootControllerControlHandle>
pub fn into_detach(self) -> Option<RebootControllerControlHandle>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RebootControllerRequest
impl !RefUnwindSafe for RebootControllerRequest
impl Send for RebootControllerRequest
impl Sync for RebootControllerRequest
impl Unpin for RebootControllerRequest
impl UnsafeUnpin for RebootControllerRequest
impl !UnwindSafe for RebootControllerRequest
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]