Struct winresult_types::NtStatus
source · [−]#[repr(transparent)]pub struct NtStatus(_);Expand description
[docs.microsoft.com] NTSTATUS
Implementations
sourceimpl 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
sourceimpl Ord for NtStatus
impl Ord for NtStatus
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<NtStatus> for NtStatus
impl PartialOrd<NtStatus> for NtStatus
sourcefn partial_cmp(&self, other: &NtStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &NtStatus) -> Option<Ordering>
1.0.0 · sourcefn 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 moreimpl Copy for NtStatus
impl Eq for NtStatus
impl Pod for NtStatus
impl StructuralEq for NtStatus
impl StructuralPartialEq for NtStatus
Auto Trait Implementations
impl RefUnwindSafe for NtStatus
impl Send for NtStatus
impl Sync for NtStatus
impl Unpin for NtStatus
impl UnwindSafe for NtStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
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. Read more