Enum buttplug::core::errors::ButtplugDeviceError
source · pub enum ButtplugDeviceError {
Show 24 variants
DeviceNotConnected(String),
MessageNotSupported(ButtplugDeviceMessageType),
DeviceFeatureCountMismatch(u32, u32),
DeviceFeatureIndexError(u32, u32),
DeviceSensorIndexError(u32, u32),
DeviceConnectionError(String),
DeviceCommunicationError(String),
InvalidEndpoint(Endpoint),
UnhandledCommand(String),
DeviceSpecificError(HardwareSpecificError),
DeviceNotAvailable(u32),
DeviceScanningAlreadyStarted,
DeviceScanningAlreadyStopped,
DevicePermissionError(String),
ProtocolAttributesNotFound(String),
ProtocolNotImplemented(String),
ProtocolSpecificError(String, String),
ProtocolRequirementError(String),
ProtocolAlreadyAdded(String),
UntypedDeserializedError(String),
DeviceConfigurationError(String),
DeviceActuatorTypeMismatch(String, ActuatorType, ActuatorType),
DeviceSensorTypeMismatch(u32, SensorType, SensorType),
ProtocolSensorNotSupported(SensorType),
}Variants§
DeviceNotConnected(String)
Device {0} not connected
MessageNotSupported(ButtplugDeviceMessageType)
Device does not support message type {0}.
DeviceFeatureCountMismatch(u32, u32)
Device only has {0} features, but {1} commands were sent.
DeviceFeatureIndexError(u32, u32)
Device only has {0} features, but was given an index of {1}
DeviceSensorIndexError(u32, u32)
Device only has {0} sensors, but was given an index of {1}
DeviceConnectionError(String)
Device connection error: {0}
DeviceCommunicationError(String)
Device communication error: {0}
InvalidEndpoint(Endpoint)
Device does not have endpoint {0}
UnhandledCommand(String)
Device does not handle command type: {0}
DeviceSpecificError(HardwareSpecificError)
Device type specific error: {0}.
DeviceNotAvailable(u32)
No device available at index {0}
DeviceScanningAlreadyStarted
Device scanning already started.
DeviceScanningAlreadyStopped
Device scanning already stopped.
DevicePermissionError(String)
Device permission error: {0}
ProtocolAttributesNotFound(String)
{0}
ProtocolNotImplemented(String)
Protocol {0} not implemented in library
ProtocolSpecificError(String, String)
{0} protocol specific error: {1}
ProtocolRequirementError(String)
{0}
ProtocolAlreadyAdded(String)
Protocol already added to system {0},
UntypedDeserializedError(String)
Untyped Deserialized Error: {0}
DeviceConfigurationError(String)
Device Configuration Error: {0}
DeviceActuatorTypeMismatch(String, ActuatorType, ActuatorType)
Actuator Type Mismatch: Index {0} got command for {1}, but expects {2}
DeviceSensorTypeMismatch(u32, SensorType, SensorType)
Sensor Type Mismatch: Index {0} got command for {1}, but expects {2}
ProtocolSensorNotSupported(SensorType)
Protocol does not have an implementation available for Sensor Type {0}
Trait Implementations§
source§impl Clone for ButtplugDeviceError
impl Clone for ButtplugDeviceError
source§fn clone(&self) -> ButtplugDeviceError
fn clone(&self) -> ButtplugDeviceError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ButtplugDeviceError
impl Debug for ButtplugDeviceError
source§impl<'de> Deserialize<'de> for ButtplugDeviceError
impl<'de> Deserialize<'de> for ButtplugDeviceError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl Display for ButtplugDeviceError
impl Display for ButtplugDeviceError
source§impl Error for ButtplugDeviceError
impl Error for ButtplugDeviceError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl<T> From<ButtplugDeviceError> for BoxFuture<'static, Result<T, ButtplugError>>where
T: Send + 'static,
impl<T> From<ButtplugDeviceError> for BoxFuture<'static, Result<T, ButtplugError>>where T: Send + 'static,
Device errors occur during device interactions, including sending unsupported message commands, addressing the wrong number of device attributes, etc…
source§fn from(
err: ButtplugDeviceError
) -> BoxFuture<'static, Result<T, ButtplugError>>
fn from( err: ButtplugDeviceError ) -> BoxFuture<'static, Result<T, ButtplugError>>
source§impl From<ButtplugDeviceError> for ButtplugError
impl From<ButtplugDeviceError> for ButtplugError
source§fn from(source: ButtplugDeviceError) -> Self
fn from(source: ButtplugDeviceError) -> Self
source§impl From<HardwareSpecificError> for ButtplugDeviceError
impl From<HardwareSpecificError> for ButtplugDeviceError
source§fn from(source: HardwareSpecificError) -> Self
fn from(source: HardwareSpecificError) -> Self
source§impl PartialEq<ButtplugDeviceError> for ButtplugDeviceError
impl PartialEq<ButtplugDeviceError> for ButtplugDeviceError
source§fn eq(&self, other: &ButtplugDeviceError) -> bool
fn eq(&self, other: &ButtplugDeviceError) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for ButtplugDeviceError
impl Serialize for ButtplugDeviceError
impl Eq for ButtplugDeviceError
impl StructuralEq for ButtplugDeviceError
impl StructuralPartialEq for ButtplugDeviceError
Auto Trait Implementations§
impl RefUnwindSafe for ButtplugDeviceError
impl Send for ButtplugDeviceError
impl Sync for ButtplugDeviceError
impl Unpin for ButtplugDeviceError
impl UnwindSafe for ButtplugDeviceError
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.