#[non_exhaustive]
pub enum WMIError {
Show 20 variants
HResultError {
hres: HRESULT,
},
ParseIntError(ParseIntError),
ParseFloatError(ParseFloatError),
ParseDatetimeError(ParseError),
ConvertError(VARTYPE),
ConvertVariantError(String),
ConvertBoolError(i16),
ConvertStringError(FromUtf16Error),
ConvertStringUtf16Error(Utf16Error),
ConvertStringNullError(NulError<u16>),
ConvertDatetimeError(String),
ConvertDurationError(String),
ConvertLengthError(u64),
ConvertAllocateError,
SerdeError(String),
DeserializeValueError(Error),
ResultEmpty,
NullPointerResult,
UnimplementedArrayItem,
InvalidDeserializationVariantError(String),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HResultError
ParseIntError(ParseIntError)
ParseFloatError(ParseFloatError)
ParseDatetimeError(ParseError)
ConvertError(VARTYPE)
ConvertVariantError(String)
ConvertBoolError(i16)
ConvertStringError(FromUtf16Error)
ConvertStringUtf16Error(Utf16Error)
ConvertStringNullError(NulError<u16>)
ConvertDatetimeError(String)
ConvertDurationError(String)
ConvertLengthError(u64)
ConvertAllocateError
SerdeError(String)
DeserializeValueError(Error)
ResultEmpty
NullPointerResult
UnimplementedArrayItem
InvalidDeserializationVariantError(String)
Trait Implementations§
source§impl Error for WMIError
impl Error for WMIError
source§fn custom<T: Display>(msg: T) -> WMIError
fn custom<T: Display>(msg: T) -> WMIError
Raised when there is general error when deserializing a type. Read more
source§fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
Raised when a
Deserialize
receives a type different from what it was
expecting. Read moresource§fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
Raised when a
Deserialize
receives a value of the right type but that
is wrong for some other reason. Read moresource§fn invalid_length(len: usize, exp: &dyn Expected) -> Self
fn invalid_length(len: usize, exp: &dyn Expected) -> Self
Raised when deserializing a sequence or map and the input data contains
too many or too few elements. Read more
source§fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
Raised when a
Deserialize
enum type received a variant with an
unrecognized name.source§fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
Raised when a
Deserialize
struct type received a field with an
unrecognized name.source§fn missing_field(field: &'static str) -> Self
fn missing_field(field: &'static str) -> Self
Raised when a
Deserialize
struct type expected to receive a required
field with a particular name but that field was not present in the
input.source§fn duplicate_field(field: &'static str) -> Self
fn duplicate_field(field: &'static str) -> Self
Raised when a
Deserialize
struct type received more than one of the
same field.source§impl Error for WMIError
impl Error for WMIError
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 From<FromUtf16Error> for WMIError
impl From<FromUtf16Error> for WMIError
source§fn from(source: FromUtf16Error) -> Self
fn from(source: FromUtf16Error) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for WMIError
impl From<ParseError> for WMIError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseFloatError> for WMIError
impl From<ParseFloatError> for WMIError
source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for WMIError
impl From<ParseIntError> for WMIError
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<Utf16Error> for WMIError
impl From<Utf16Error> for WMIError
source§fn from(source: Utf16Error) -> Self
fn from(source: Utf16Error) -> Self
Converts to this type from the input type.