#[repr(u8)]pub enum Action {
PowerOff = 1,
Restart = 2,
Sleep = 3,
}Expand description
Final action of a lifecycle request.
Variants§
PowerOff = 1
Stop Xila and halt or power off (device::power::POWER_OFF).
Restart = 2
Stop Xila and restart (device::power::RESTART).
Sleep = 3
Stop Xila and enter a low-power state (device::power::SLEEP).
Implementations§
Source§impl Action
impl Action
Sourcepub const fn capability(self) -> Capabilities
pub const fn capability(self) -> Capabilities
Power device capability needed to complete this action.
Trait Implementations§
impl Copy for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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