Enum gilrs::ff::Error [−][src]
pub enum Error { FfNotSupported(usize), Disconnected(usize), InvalidDistanceModel(DistanceModelError), SendFailed, Other, // some variants omitted }
Basic error type in force feedback module.
Variants
FfNotSupported(usize)
Force feedback is not supported by device with this ID
Disconnected(usize)
Device is not connected
InvalidDistanceModel(DistanceModelError)
Distance model is invalid.
SendFailed
The other end of channel was dropped.
Other
Unexpected error has occurred
Trait Implementations
impl Copy for Error
[src]
impl Copy for Error
impl Clone for Error
[src]
impl Clone for Error
fn clone(&self) -> Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Error
[src]
impl PartialEq for Error
fn eq(&self, other: &Error) -> bool
[src]
fn eq(&self, other: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Error) -> bool
[src]
fn ne(&self, other: &Error) -> bool
This method tests for !=
.
impl StdError for Error
[src]
impl StdError for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> From<SendError<T>> for Error
[src]
impl<T> From<SendError<T>> for Error
impl From<DistanceModelError> for Error
[src]
impl From<DistanceModelError> for Error
fn from(f: DistanceModelError) -> Self
[src]
fn from(f: DistanceModelError) -> Self
Performs the conversion.