Struct winsafe::co::SHTDN_REASON
source · pub struct SHTDN_REASON(/* private fields */);
Available on crate feature
kernel
only.Expand description
Shutdown reason
codes
(u32
).
This is a bitflag constant, which implements the
NativeBitflag
trait.
Implementations§
source§impl SHTDN_REASON
impl SHTDN_REASON
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 SHTDN_REASON
impl SHTDN_REASON
pub const MAJOR_APPLICATION: Self = _
pub const MAJOR_HARDWARE: Self = _
pub const MAJOR_LEGACY_API: Self = _
pub const MAJOR_OPERATINGSYSTEM: Self = _
pub const MAJOR_OTHER: Self = _
pub const MAJOR_POWER: Self = _
pub const MAJOR_SOFTWARE: Self = _
pub const MAJOR_SYSTEM: Self = _
pub const MINOR_BLUESCREEN: Self = _
pub const MINOR_CORDUNPLUGGED: Self = _
pub const MINOR_DISK: Self = _
pub const MINOR_ENVIRONMENT: Self = _
pub const MINOR_HARDWARE_DRIVER: Self = _
pub const MINOR_HOTFIX: Self = _
pub const MINOR_HOTFIX_UNINSTALL: Self = _
pub const MINOR_HUNG: Self = _
pub const MINOR_INSTALLATION: Self = _
pub const MINOR_MAINTENANCE: Self = _
pub const MINOR_MMC: Self = _
pub const MINOR_NETWORK_CONNECTIVITY: Self = _
pub const MINOR_NETWORKCARD: Self = _
pub const MINOR_OTHER: Self = _
pub const MINOR_OTHERDRIVER: Self = _
pub const MINOR_POWER_SUPPLY: Self = _
pub const MINOR_PROCESSOR: Self = _
pub const MINOR_RECONFIG: Self = _
pub const MINOR_SECURITY: Self = _
pub const MINOR_SECURITYFIX: Self = _
pub const MINOR_SECURITYFIX_UNINSTALL: Self = _
pub const MINOR_SERVICEPACK: Self = _
pub const MINOR_SERVICEPACK_UNINSTALL: Self = _
pub const MINOR_TERMSRV: Self = _
pub const MINOR_UNSTABLE: Self = _
pub const MINOR_UPGRADE: Self = _
pub const MINOR_WMI: Self = _
pub const FLAG_USER_DEFINED: Self = _
pub const FLAG_PLANNED: Self = _
Trait Implementations§
source§impl AsRef<u32> for SHTDN_REASON
impl AsRef<u32> for SHTDN_REASON
source§impl Binary for SHTDN_REASON
impl Binary for SHTDN_REASON
source§impl BitAnd for SHTDN_REASON
impl BitAnd for SHTDN_REASON
source§impl BitAndAssign for SHTDN_REASON
impl BitAndAssign for SHTDN_REASON
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for SHTDN_REASON
impl BitOr for SHTDN_REASON
source§impl BitOrAssign for SHTDN_REASON
impl BitOrAssign for SHTDN_REASON
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for SHTDN_REASON
impl BitXor for SHTDN_REASON
source§impl BitXorAssign for SHTDN_REASON
impl BitXorAssign for SHTDN_REASON
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for SHTDN_REASON
impl Clone for SHTDN_REASON
source§fn clone(&self) -> SHTDN_REASON
fn clone(&self) -> SHTDN_REASON
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 SHTDN_REASON
impl Debug for SHTDN_REASON
source§impl Default for SHTDN_REASON
impl Default for SHTDN_REASON
source§fn default() -> SHTDN_REASON
fn default() -> SHTDN_REASON
Returns the “default value” for a type. Read more
source§impl Display for SHTDN_REASON
impl Display for SHTDN_REASON
source§impl From<SHTDN_REASON> for u32
impl From<SHTDN_REASON> for u32
source§fn from(v: SHTDN_REASON) -> Self
fn from(v: SHTDN_REASON) -> Self
Converts to this type from the input type.
source§impl Hash for SHTDN_REASON
impl Hash for SHTDN_REASON
source§impl IntUnderlying for SHTDN_REASON
impl IntUnderlying for SHTDN_REASON
source§impl LowerHex for SHTDN_REASON
impl LowerHex for SHTDN_REASON
source§impl NativeBitflag for SHTDN_REASON
impl NativeBitflag for SHTDN_REASON
source§impl Not for SHTDN_REASON
impl Not for SHTDN_REASON
source§impl Octal for SHTDN_REASON
impl Octal for SHTDN_REASON
source§impl Ord for SHTDN_REASON
impl Ord for SHTDN_REASON
source§impl PartialEq for SHTDN_REASON
impl PartialEq for SHTDN_REASON
source§fn eq(&self, other: &SHTDN_REASON) -> bool
fn eq(&self, other: &SHTDN_REASON) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SHTDN_REASON
impl PartialOrd for SHTDN_REASON
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 SHTDN_REASON
impl UpperHex for SHTDN_REASON
impl Copy for SHTDN_REASON
impl Eq for SHTDN_REASON
impl NativeConst for SHTDN_REASON
impl Send for SHTDN_REASON
impl StructuralPartialEq for SHTDN_REASON
Auto Trait Implementations§
impl Freeze for SHTDN_REASON
impl RefUnwindSafe for SHTDN_REASON
impl Sync for SHTDN_REASON
impl Unpin for SHTDN_REASON
impl UnwindSafe for SHTDN_REASON
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