Struct indy_data_types::ConversionError
source · pub struct ConversionError {
pub context: Option<String>,
pub source: Option<Box<dyn StdError + Send + Sync + 'static>>,
}
Expand description
Error type for general data conversion errors
Fields§
§context: Option<String>
§source: Option<Box<dyn StdError + Send + Sync + 'static>>
Implementations§
Trait Implementations§
source§impl Debug for ConversionError
impl Debug for ConversionError
source§impl Display for ConversionError
impl Display for ConversionError
source§impl Error for ConversionError
impl Error for ConversionError
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<&str> for ConversionError
impl From<&str> for ConversionError
source§impl<M, E> From<(M, E)> for ConversionError
impl<M, E> From<(M, E)> for ConversionError
source§impl From<ConversionError> for String
impl From<ConversionError> for String
source§fn from(val: ConversionError) -> String
fn from(val: ConversionError) -> String
Converts to this type from the input type.
source§impl From<ConversionError> for ValidationError
impl From<ConversionError> for ValidationError
source§fn from(err: ConversionError) -> Self
fn from(err: ConversionError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ConversionError
impl From<Error> for ConversionError
source§impl From<FromUtf8Error> for ConversionError
impl From<FromUtf8Error> for ConversionError
source§fn from(_err: FromUtf8Error) -> Self
fn from(_err: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<String> for ConversionError
impl From<String> for ConversionError
source§impl From<Utf8Error> for ConversionError
impl From<Utf8Error> for ConversionError
source§impl From<ValidationError> for ConversionError
impl From<ValidationError> for ConversionError
source§fn from(err: ValidationError) -> Self
fn from(err: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ConversionError
impl Send for ConversionError
impl Sync for ConversionError
impl Unpin for ConversionError
impl !UnwindSafe for ConversionError
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