pub enum ButtplugDeviceError {
Show 24 variants DeviceNotConnected(String), MessageNotSupported(ButtplugDeviceMessageType), DeviceFeatureCountMismatch(u32u32), DeviceFeatureIndexError(u32u32), DeviceSensorIndexError(u32u32), DeviceConnectionError(String), DeviceCommunicationError(String), InvalidEndpoint(Endpoint), UnhandledCommand(String), DeviceSpecificError(HardwareSpecificError), DeviceNotAvailable(u32), DeviceScanningAlreadyStarted, DeviceScanningAlreadyStopped, DevicePermissionError(String), ProtocolAttributesNotFound(String), ProtocolNotImplemented(String), ProtocolSpecificError(StringString), ProtocolRequirementError(String), ProtocolAlreadyAdded(String), UntypedDeserializedError(String), DeviceConfigurationError(String), DeviceActuatorTypeMismatch(StringActuatorTypeActuatorType), DeviceSensorTypeMismatch(u32SensorTypeSensorType), ProtocolSensorNotSupported(SensorType),
}

Variants

DeviceNotConnected(String)

Device {0} not connected

MessageNotSupported(ButtplugDeviceMessageType)

Device does not support message type {0}.

DeviceFeatureCountMismatch(u32u32)

Device only has {0} features, but {1} commands were sent.

DeviceFeatureIndexError(u32u32)

Device only has {0} features, but was given an index of {1}

DeviceSensorIndexError(u32u32)

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(StringString)

{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(StringActuatorTypeActuatorType)

Actuator Type Mismatch: Index {0} got command for {1}, but expects {2}

DeviceSensorTypeMismatch(u32SensorTypeSensorType)

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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0: use the Display impl or to_string()
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Device errors occur during device interactions, including sending unsupported message commands, addressing the wrong number of device attributes, etc…

Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more