pub struct NtStatus(/* private fields */);Expand description
[docs.microsoft.com] NTSTATUS
Implementations§
Source§impl NtStatus
impl NtStatus
pub const fn sev(self) -> NtStatusSeverity
pub const fn is_error(self) -> bool
pub const fn is_warning(self) -> bool
pub const fn is_informational(self) -> bool
pub const fn is_success(self) -> bool
pub const fn is_customer(self) -> bool
pub const fn is_ntstatus(self) -> bool
pub const fn facility(self) -> u16
pub const fn code(self) -> u16
pub const fn to_u32(self) -> u32
Trait Implementations§
Source§impl From<Infallible> for NtStatus
impl From<Infallible> for NtStatus
Source§fn from(i: Infallible) -> NtStatus
fn from(i: Infallible) -> NtStatus
Converts to this type from the input type.
Source§impl Ord for NtStatus
impl Ord for NtStatus
Source§impl PartialOrd for NtStatus
impl PartialOrd for NtStatus
impl Copy for NtStatus
impl Eq for NtStatus
impl Pod for NtStatus
impl StructuralPartialEq for NtStatus
Auto Trait Implementations§
impl Freeze for NtStatus
impl RefUnwindSafe for NtStatus
impl Send for NtStatus
impl Sync for NtStatus
impl Unpin for NtStatus
impl UnwindSafe for NtStatus
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.