[−][src]Struct accelerometer::error::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) -> Self
[src]
Create a new error
pub fn new_with_cause(kind: ErrorKind, cause: E) -> Self
[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 + Debug> Clone for Error<E>
[src]
fn clone(&self) -> Error<E>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<E: Debug> Debug for Error<E>
[src]
impl<E> From<E> for Error<E> where
E: Debug,
[src]
E: Debug,
Auto Trait Implementations
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,
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, 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>,