pub enum Endpoint {
Show 46 variants Command, Firmware, Rx, RxAccel, RxBLEBattery, RxBLEModel, RxPressure, RxTouch, Tx, TxMode, TxShock, TxVibrate, TxVendorControl, Whitelist, Generic0, Generic1, Generic2, Generic3, Generic4, Generic5, Generic6, Generic7, Generic8, Generic9, Generic10, Generic11, Generic12, Generic13, Generic14, Generic15, Generic16, Generic17, Generic18, Generic19, Generic20, Generic21, Generic22, Generic23, Generic24, Generic25, Generic26, Generic27, Generic28, Generic29, Generic30, Generic31,
}
Expand description

Endpoint names for device communication.

Endpoints denote different contextual communication targets on a device. For instance, for a device that uses UART style communication (serial, a lot of Bluetooth LE devices, etc…) most devices will just have a Tx and Rx endpoint. However, on other devices that can have varying numbers of endpoints and configurations (USB, Bluetooth LE, etc…) we add some names with more context. These names are used in Device Configuration and the Device Configuration File, and are expected to de/serialize to lowercase versions of their names.

Variants§

§

Command

Expect to take commands, when multiple receive endpoints may be available

§

Firmware

Firmware updates (Buttplug does not update firmware, but some firmware endpoints are used for mode setting)

§

Rx

Common receive endpoint name

§

RxAccel

Receive endpoint for accelerometer data

§

RxBLEBattery

Receive endpoint for battery levels (usually expected to be BLE standard profile)

§

RxBLEModel

Receive endpoint for BLE model (usually expected to be BLE standard profile)

§

RxPressure

Receive endpoint for pressure sensors

§

RxTouch

Receive endpoint for touch sensors

§

Tx

Common transmit endpoint name

§

TxMode

Transmit endpoint for hardware mode setting.

§

TxShock

Transmit endpoint for shock setting (unused)

§

TxVibrate

Transmit endpoint for vibration setting

§

TxVendorControl

Transmit endpoint for vendor (proprietary) control

§

Whitelist

Transmit endpoint for whitelist updating

§

Generic0

Generic endpoint (available for user configurations)

§

Generic1

Generic endpoint (available for user configurations)

§

Generic2

Generic endpoint (available for user configurations)

§

Generic3

Generic endpoint (available for user configurations)

§

Generic4

Generic endpoint (available for user configurations)

§

Generic5

Generic endpoint (available for user configurations)

§

Generic6

Generic endpoint (available for user configurations)

§

Generic7

Generic endpoint (available for user configurations)

§

Generic8

Generic endpoint (available for user configurations)

§

Generic9

Generic endpoint (available for user configurations)

§

Generic10

Generic endpoint (available for user configurations)

§

Generic11

Generic endpoint (available for user configurations)

§

Generic12

Generic endpoint (available for user configurations)

§

Generic13

Generic endpoint (available for user configurations)

§

Generic14

Generic endpoint (available for user configurations)

§

Generic15

Generic endpoint (available for user configurations)

§

Generic16

Generic endpoint (available for user configurations)

§

Generic17

Generic endpoint (available for user configurations)

§

Generic18

Generic endpoint (available for user configurations)

§

Generic19

Generic endpoint (available for user configurations)

§

Generic20

Generic endpoint (available for user configurations)

§

Generic21

Generic endpoint (available for user configurations)

§

Generic22

Generic endpoint (available for user configurations)

§

Generic23

Generic endpoint (available for user configurations)

§

Generic24

Generic endpoint (available for user configurations)

§

Generic25

Generic endpoint (available for user configurations)

§

Generic26

Generic endpoint (available for user configurations)

§

Generic27

Generic endpoint (available for user configurations)

§

Generic28

Generic endpoint (available for user configurations)

§

Generic29

Generic endpoint (available for user configurations)

§

Generic30

Generic endpoint (available for user configurations)

§

Generic31

Generic endpoint (available for user configurations)

Trait Implementations§

source§

impl Clone for Endpoint

source§

fn clone(&self) -> Endpoint

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Endpoint

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Endpoint

source§

fn deserialize<D>(deserializer: D) -> Result<Endpoint, D::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Endpoint

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl FromStr for Endpoint

§

type Err = ParseError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Endpoint, <Self as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Endpoint

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq<Endpoint> for Endpoint

source§

fn eq(&self, other: &Endpoint) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Endpoint

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<&str> for Endpoint

§

type Error = ParseError

The type returned in the event of a conversion error.
source§

fn try_from(s: &str) -> Result<Endpoint, <Self as TryFrom<&str>>::Error>

Performs the conversion.
source§

impl Copy for Endpoint

source§

impl Eq for Endpoint

source§

impl StructuralEq for Endpoint

source§

impl StructuralPartialEq for Endpoint

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

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

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,