[−][src]Struct lis2dh12::Error
Accelerometer errors, generic around another error type E
representing
an (optional) cause of this error.
Implementations
impl<E> Error<E> where
E: Debug,
[src]
E: Debug,
pub fn new(kind: ErrorKind) -> Error<E>
[src]
Create a new error
pub fn new_with_cause(kind: ErrorKind, cause: E) -> Error<E>
[src]
Create a new error with a cause
pub fn kind(&self) -> ErrorKind
[src]
Get the kind of error which occurred
pub fn cause(&self) -> Option<&E>
[src]
Get the cause of the underlying error (if applicable)
pub fn into_cause(self) -> E
[src]
Convert this error into its underlying cause.
Panics if the error does not have a cause.
Trait Implementations
impl<E> Clone for Error<E> where
E: Clone + Debug,
[src]
E: Clone + Debug,
impl<E> Debug for Error<E> where
E: Debug,
[src]
E: Debug,
impl<E> From<E> for Error<E> where
E: Debug,
[src]
E: Debug,
Auto Trait Implementations
impl<E> RefUnwindSafe for Error<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for Error<E> where
E: Send,
E: Send,
impl<E> Sync for Error<E> where
E: Sync,
E: Sync,
impl<E> Unpin for Error<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for Error<E> where
E: UnwindSafe,
E: UnwindSafe,
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<!> for 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> Same<T> for T
type Output = T
Should always be Self
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, 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: TryFrom<T>,
[src]
U: TryFrom<T>,