Struct winsafe::co::USER_ACTIVITY_PRESENCE
source · pub struct USER_ACTIVITY_PRESENCE(/* private fields */);
Available on crate feature
kernel
only.Expand description
PowerSetting::GlobalUserPresence
enumeration (u32
).
Implementations§
source§impl USER_ACTIVITY_PRESENCE
impl USER_ACTIVITY_PRESENCE
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.
Trait Implementations§
source§impl AsRef<u32> for USER_ACTIVITY_PRESENCE
impl AsRef<u32> for USER_ACTIVITY_PRESENCE
source§impl Binary for USER_ACTIVITY_PRESENCE
impl Binary for USER_ACTIVITY_PRESENCE
source§impl Clone for USER_ACTIVITY_PRESENCE
impl Clone for USER_ACTIVITY_PRESENCE
source§fn clone(&self) -> USER_ACTIVITY_PRESENCE
fn clone(&self) -> USER_ACTIVITY_PRESENCE
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 USER_ACTIVITY_PRESENCE
impl Debug for USER_ACTIVITY_PRESENCE
source§impl Default for USER_ACTIVITY_PRESENCE
impl Default for USER_ACTIVITY_PRESENCE
source§fn default() -> USER_ACTIVITY_PRESENCE
fn default() -> USER_ACTIVITY_PRESENCE
Returns the “default value” for a type. Read more
source§impl Display for USER_ACTIVITY_PRESENCE
impl Display for USER_ACTIVITY_PRESENCE
source§impl From<USER_ACTIVITY_PRESENCE> for u32
impl From<USER_ACTIVITY_PRESENCE> for u32
source§fn from(v: USER_ACTIVITY_PRESENCE) -> Self
fn from(v: USER_ACTIVITY_PRESENCE) -> Self
Converts to this type from the input type.
source§impl Hash for USER_ACTIVITY_PRESENCE
impl Hash for USER_ACTIVITY_PRESENCE
source§impl LowerHex for USER_ACTIVITY_PRESENCE
impl LowerHex for USER_ACTIVITY_PRESENCE
source§impl Octal for USER_ACTIVITY_PRESENCE
impl Octal for USER_ACTIVITY_PRESENCE
source§impl Ord for USER_ACTIVITY_PRESENCE
impl Ord for USER_ACTIVITY_PRESENCE
source§impl PartialEq for USER_ACTIVITY_PRESENCE
impl PartialEq for USER_ACTIVITY_PRESENCE
source§fn eq(&self, other: &USER_ACTIVITY_PRESENCE) -> bool
fn eq(&self, other: &USER_ACTIVITY_PRESENCE) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for USER_ACTIVITY_PRESENCE
impl PartialOrd for USER_ACTIVITY_PRESENCE
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl UpperHex for USER_ACTIVITY_PRESENCE
impl UpperHex for USER_ACTIVITY_PRESENCE
impl Copy for USER_ACTIVITY_PRESENCE
impl Eq for USER_ACTIVITY_PRESENCE
impl NativeConst for USER_ACTIVITY_PRESENCE
impl Send for USER_ACTIVITY_PRESENCE
impl StructuralPartialEq for USER_ACTIVITY_PRESENCE
Auto Trait Implementations§
impl Freeze for USER_ACTIVITY_PRESENCE
impl RefUnwindSafe for USER_ACTIVITY_PRESENCE
impl Sync for USER_ACTIVITY_PRESENCE
impl Unpin for USER_ACTIVITY_PRESENCE
impl UnwindSafe for USER_ACTIVITY_PRESENCE
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