[][src]Enum buttplug::core::errors::ButtplugDeviceError

pub enum ButtplugDeviceError {
    DeviceNotConnected(String),
    MessageNotSupported(ButtplugDeviceMessageType),
    DeviceFeatureCountMismatch(u32u32),
    DeviceFeatureIndexError(u32u32),
    DeviceConnectionError(String),
    DeviceCommunicationError(String),
    InvalidEndpoint(Endpoint),
    UnhandledCommand(String),
    DeviceSpecificError(ButtplugDeviceSpecificError),
    DeviceNotAvailable(u32),
    DeviceScanningAlreadyStarted,
    DeviceScanningAlreadyStopped,
    DevicePermissionError(String),
    ProtocolAttributesNotFound(String),
    ProtocolNotImplemented(String),
    ProtocolSpecificError(&'static str, &'static str),
    ProtocolRequirementError(String),
    UntypedDeserializedError(String),
    DeviceConfigurationFileError(String),
}

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}

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

Device type specific error.

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(&'static str, &'static str)

{0} protocol specific error: {1}

ProtocolRequirementError(String)

{0}

UntypedDeserializedError(String)

Untyped Deserialized Error: {0}

DeviceConfigurationFileError(String)

Device Configuration File Error: {0}

Trait Implementations

impl Clone for ButtplugDeviceError[src]

impl Debug for ButtplugDeviceError[src]

impl Display for ButtplugDeviceError[src]

impl Error for ButtplugDeviceError[src]

impl<T> From<ButtplugDeviceError> for BoxFuture<'static, Result<T, ButtplugError>> where
    T: Send + 'static, 
[src]

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

impl From<ButtplugDeviceError> for ButtplugError[src]

impl From<ButtplugDeviceError> for ButtplugServerError[src]

impl From<ButtplugDeviceSpecificError> for ButtplugDeviceError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T> From<T> for T[src]

impl<T> GetTypeId for T where
    T: Any
[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]