[−][src]Struct accelerometer::error::Error
Accelerometer errors, generic around another error type E
representing
an (optional) cause of this error.
Methods
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: Debug + Debug> Debug for Error<E>
[src]
impl<E> From<E> for Error<E> where
E: Debug,
[src]
E: Debug,
impl<E: Clone + Debug> Clone for Error<E>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom 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 for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
type Output = T
Should always be Self