Struct winsafe::co::ERROR [−][src]
#[repr(transparent)]pub struct ERROR(_);
Expand description
A Windows
system error code
(u32
) retrieved by
GetLastError
function, or an
HRESULT
.
Implements the
Error
trait.
Implements the
Debug
and
Display
traits
to show the error code along with the error description, taken from
ERROR::FormatMessage
. For example,
the code below:
ⓘ
use winsafe::co::ERROR;
println!("{}", ERROR::OUT_OF_PAPER);
Will print:
[0x001c 28] The printer is out of paper.
Implementations
Returns the textual description of the system error, by calling
FormatMessage
function.
Trait Implementations
Performs the &=
operation. Read more
Performs the |=
operation. Read more
Performs the ^=
operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for ERROR
impl UnwindSafe for ERROR
Blanket Implementations
Mutably borrows from an owned value. Read more