[−][src]Enum uclicious::raw::object::ObjectError
Errors that could be returned by Object
or ObjectRef
functions.
Variants
KeyNotFound(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
.
AddrParseError(AddrParseError)
Wrapper around AddrParseError
.
Other(String)
An error that we couldn't match to internal type.
Not an error, but required for some conversions.
Methods
impl ObjectError
[src]
pub fn boxed(self) -> Box<ObjectError>
[src]
Wrap error in Box<>.
pub fn boxed_dyn(self) -> Box<dyn Error>
[src]
Wrap error in Box<> and erase its type.
pub fn other<E: Display>(err: E) -> ObjectError
[src]
Create a new error Other
by extracting the error description.
Trait Implementations
impl Clone for ObjectError
[src]
fn clone(&self) -> ObjectError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ObjectError
[src]
impl Display for ObjectError
[src]
impl Eq for ObjectError
[src]
impl Error for ObjectError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<AddrParseError> for ObjectError
[src]
fn from(source: AddrParseError) -> Self
[src]
impl From<Infallible> for ObjectError
[src]
fn from(_: Infallible) -> Self
[src]
impl From<TryFromIntError> for ObjectError
[src]
fn from(source: TryFromIntError) -> Self
[src]
impl PartialEq<ObjectError> for ObjectError
[src]
fn eq(&self, other: &ObjectError) -> bool
[src]
fn ne(&self, other: &ObjectError) -> bool
[src]
impl StructuralEq for ObjectError
[src]
impl StructuralPartialEq for ObjectError
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: FromObject<T>,
[src]
U: FromObject<T>,
fn try_into(Self) -> Result<U, ObjectError>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,