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