Struct windows_win::ErrorCode
source · pub struct ErrorCode { /* private fields */ }
Expand description
Describes error code of particular category.
Implementations§
source§impl ErrorCode
impl ErrorCode
sourcepub const fn new(code: i32, category: &'static Category) -> ErrorCode
pub const fn new(code: i32, category: &'static Category) -> ErrorCode
Initializes error code with provided category
sourcepub fn new_system(code: i32) -> ErrorCode
pub fn new_system(code: i32) -> ErrorCode
Creates new System error code.
sourcepub fn last_posix() -> ErrorCode
pub fn last_posix() -> ErrorCode
Gets last POSIX error
sourcepub fn last_system() -> ErrorCode
pub fn last_system() -> ErrorCode
Gets last System error
sourcepub fn is_would_block(&self) -> bool
pub fn is_would_block(&self) -> bool
Returns true
if underlying error indicates operation can or should be re-tried at later date.
Trait Implementations§
source§impl PartialEq for ErrorCode
impl PartialEq for ErrorCode
impl Copy for ErrorCode
impl Eq for ErrorCode
Auto Trait Implementations§
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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