Struct zx::PowerTransitionPacket
source · pub struct PowerTransitionPacket(/* private fields */);
Expand description
Contents of a power transition packet generated by the kernel. This is a type-safe wrapper for zx_packet_processor_power_level_transition_request_t
Implementations§
source§impl PowerTransitionPacket
impl PowerTransitionPacket
pub fn from_raw( packet: zx_packet_processor_power_level_transition_request_t, ) -> PowerTransitionPacket
pub fn domain_id(&self) -> u32
pub fn options(&self) -> u32
pub fn control_interface(&self) -> u64
pub fn reserved(&self) -> u64
pub fn control_argument(&self) -> u64
Trait Implementations§
source§impl Clone for PowerTransitionPacket
impl Clone for PowerTransitionPacket
source§fn clone(&self) -> PowerTransitionPacket
fn clone(&self) -> PowerTransitionPacket
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PowerTransitionPacket
impl Debug for PowerTransitionPacket
impl Copy for PowerTransitionPacket
Auto Trait Implementations§
impl Freeze for PowerTransitionPacket
impl RefUnwindSafe for PowerTransitionPacket
impl Send for PowerTransitionPacket
impl Sync for PowerTransitionPacket
impl Unpin for PowerTransitionPacket
impl UnwindSafe for PowerTransitionPacket
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
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)