pub struct PBT(/* private fields */);
Available on crate feature
kernel
only.Expand description
wm::PowerBroadcast
power-management
event (u32
).
Implementations§
source§impl PBT
impl PBT
sourcepub const unsafe fn from_raw(v: u32) -> Self
pub const unsafe fn from_raw(v: u32) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
sourcepub const fn raw(&self) -> u32
pub const fn raw(&self) -> u32
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
source§impl PBT
impl PBT
pub const APMPOWERSTATUSCHANGE: Self = _
pub const APMRESUMEAUTOMATIC: Self = _
pub const APMRESUMESUSPEND: Self = _
pub const APMSUSPEND: Self = _
pub const POWERSETTINGCHANGE: Self = _
Trait Implementations§
source§impl IntUnderlying for PBT
impl IntUnderlying for PBT
impl Copy for PBT
impl Eq for PBT
impl NativeConst for PBT
impl Send for PBT
impl StructuralPartialEq for PBT
Auto Trait Implementations§
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