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
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>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
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 more
impl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more