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 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§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
)