pub struct CDERR(/* private fields */);
Available on crate features
kernel
and user
only.Expand description
Common dialog box error codes.
Also includes PDERR
, CFERR
, FNERR
and FRERR
prefixes.
Implements the standard Error
trait.
Does not implement FormattedError
because FormatMessage
function does not offer
support for it, so there is no way to obtain a textual description of
the error codes.
Implementations§
source§impl CDERR
impl CDERR
sourcepub const unsafe fn from_raw(v: u32) -> Self
pub const unsafe fn from_raw(v: u32) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
sourcepub const fn raw(&self) -> u32
pub const fn raw(&self) -> u32
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
source§impl CDERR
impl CDERR
pub const DIALOGFAILURE: Self = _
pub const FINDRESFAILURE: Self = _
pub const INITIALIZATION: Self = _
pub const LOADRESFAILURE: Self = _
pub const LOADSTRFAILURE: Self = _
pub const LOCKRESFAILURE: Self = _
pub const MEMALLOCFAILURE: Self = _
pub const MEMLOCKFAILURE: Self = _
pub const NOHINSTANCE: Self = _
pub const NOHOOK: Self = _
pub const NOTEMPLATE: Self = _
pub const REGISTERMSGFAIL: Self = _
pub const STRUCTSIZE: Self = _
pub const PD_CREATEICFAILURE: Self = _
pub const PD_DEFAULTDIFFERENT: Self = _
pub const PD_DNDMMISMATCH: Self = _
pub const PD_GETDEVMODEFAIL: Self = _
pub const PD_INITFAILURE: Self = _
pub const PD_LOADDRVFAILURE: Self = _
pub const PD_NODEFAULTPRN: Self = _
pub const PD_NODEVICES: Self = _
pub const PD_PARSEFAILURE: Self = _
pub const PD_PRINTERNOTFOUND: Self = _
pub const PD_RETDEFFAILURE: Self = _
pub const PD_SETUPFAILURE: Self = _
pub const CF_MAXLESSTHANMIN: Self = _
pub const CF_NOFONTS: Self = _
pub const FN_BUFFERTOOSMALL: Self = _
pub const FN_INVALIDFILENAME: Self = _
pub const FN_SUBCLASSFAILURE: Self = _
pub const FR_BUFFERLENGTHZERO: Self = _
Trait Implementations§
source§impl Error for CDERR
impl Error for CDERR
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl IntUnderlying for CDERR
impl IntUnderlying for CDERR
source§impl Ord for CDERR
impl Ord for CDERR
source§impl PartialEq for CDERR
impl PartialEq for CDERR
source§impl PartialOrd for CDERR
impl PartialOrd for CDERR
1.0.0 · source§fn 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 CDERR
impl Eq for CDERR
impl NativeConst for CDERR
impl Send for CDERR
impl StructuralPartialEq for CDERR
Auto Trait Implementations§
impl Freeze for CDERR
impl RefUnwindSafe for CDERR
impl Sync for CDERR
impl Unpin for CDERR
impl UnwindSafe for CDERR
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