pub struct NativeError { /* private fields */ }
Implementations§
Source§impl NativeError
impl NativeError
pub fn new(message: &str, cause: Option<Box<dyn Error>>) -> Self
pub fn from_error<E>(cause: E) -> Selfwhere
E: Error + 'static,
pub fn from_error_with_message<E>(message: &str, cause: E) -> Selfwhere
E: Error + 'static,
pub fn apply<E>(cause: E) -> Selfwhere
E: Error + 'static,
pub fn apply_with_message<E>(message: &str) -> impl FnOnce(E) -> Self + 'staticwhere
E: Error + 'static,
pub fn message(&self) -> &str
pub fn cause(&self) -> Option<&dyn Error>
Trait Implementations§
Source§impl Debug for NativeError
impl Debug for NativeError
Source§impl Display for NativeError
impl Display for NativeError
Source§impl Error for NativeError
impl Error for NativeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<DataTypeConstraintError> for NativeError
impl From<DataTypeConstraintError> for NativeError
Source§fn from(value: DataTypeConstraintError) -> Self
fn from(value: DataTypeConstraintError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NativeError
impl !RefUnwindSafe for NativeError
impl !Send for NativeError
impl !Sync for NativeError
impl Unpin for NativeError
impl !UnwindSafe for NativeError
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