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 Clone for Error
[src]
fn clone(&self) -> Error
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Error
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
[src]
This method tests for !=
.
impl StdError for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
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]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T> From<SendError<T>> for Error
[src]
impl From<DistanceModelError> for Error
[src]
fn from(f: DistanceModelError) -> Self
[src]
Performs the conversion.