pub enum CommandError {
Unsupported,
UnknownTarget,
InvalidAction,
UnknownSensor,
}Expand description
Why a command could not be carried out. The code is a stable,
language-neutral string the page localizes.
Variants§
Unsupported
The source does not handle this kind of command.
UnknownTarget
No actuator or target matches the command.
InvalidAction
The target exists but does not accept the requested action.
UnknownSensor
The sensor being added is not one this device supports, so it was not added. A real device only accepts the sensor types it can actually bind a driver to.
Implementations§
Trait Implementations§
Source§impl Clone for CommandError
impl Clone for CommandError
Source§fn clone(&self) -> CommandError
fn clone(&self) -> CommandError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommandError
Source§impl Debug for CommandError
impl Debug for CommandError
impl Eq for CommandError
Source§impl PartialEq for CommandError
impl PartialEq for CommandError
Source§fn eq(&self, other: &CommandError) -> bool
fn eq(&self, other: &CommandError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommandError
Auto Trait Implementations§
impl Freeze for CommandError
impl RefUnwindSafe for CommandError
impl Send for CommandError
impl Sync for CommandError
impl Unpin for CommandError
impl UnsafeUnpin for CommandError
impl UnwindSafe for CommandError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more