Enum uclicious::raw::object::ObjectError [−][src]
pub enum ObjectError {
KeyNotFound(String),
WrongType {
key: String,
actual_type: ucl_type_t,
wanted_type: ucl_type_t,
},
IntConversionError(TryFromIntError),
AddrParseError(AddrParseError),
Other(String),
None,
}
Expand description
Errors that could be returned by Object
or ObjectRef
functions.
Variants
KeyNotFound(String)
Tuple Fields of KeyNotFound
0: String
Object was found, but value type doesn’t match the desired type.
NOTE: Error only returned when conversion is done by FromObject
trait. Built-in functions return None
.
Fields of WrongType
IntConversionError(TryFromIntError)
Wrapper around TryFromIntError
.
Tuple Fields of IntConversionError
AddrParseError(AddrParseError)
Wrapper around AddrParseError
.
Tuple Fields of AddrParseError
Other(String)
An error that we couldn’t match to internal type.
Tuple Fields of Other
0: String
Not an error, but required for some conversions.
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ObjectError
impl Send for ObjectError
impl Sync for ObjectError
impl Unpin for ObjectError
impl UnwindSafe for ObjectError
Blanket Implementations
Mutably borrows from an owned value. Read more