[−][src]Struct buttplug::test::TestDevice
Fields
endpoint_channels: Arc<RwLock<HashMap<Endpoint, (Sender<DeviceImplCommand>, Receiver<DeviceImplCommand>)>>>event_broadcaster: BoundedDeviceEventBroadcasterMethods
impl TestDevice[src]
pub fn new(name: &str, endpoints: Vec<Endpoint>) -> Self[src]
pub async fn add_endpoint<'_, '_>(&'_ mut self, endpoint: &'_ Endpoint)[src]
pub fn new_bluetoothle_test_device_impl_creator(
name: &str
) -> (TestDevice, TestDeviceImplCreator)[src]
name: &str
) -> (TestDevice, TestDeviceImplCreator)
pub async fn new_bluetoothle_test_device<'_>(
name: &'_ str
) -> Result<(ButtplugDevice, TestDevice), ButtplugError>[src]
name: &'_ str
) -> Result<(ButtplugDevice, TestDevice), ButtplugError>
pub async fn get_endpoint_channel_clone<'_, '_>(
&'_ self,
endpoint: &'_ Endpoint
) -> (Sender<DeviceImplCommand>, Receiver<DeviceImplCommand>)[src]
&'_ self,
endpoint: &'_ Endpoint
) -> (Sender<DeviceImplCommand>, Receiver<DeviceImplCommand>)
Trait Implementations
impl Clone for TestDevice[src]
fn clone(&self) -> TestDevice[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl DeviceImpl for TestDevice[src]
fn name(&self) -> &str[src]
fn address(&self) -> &str[src]
fn connected(&self) -> bool[src]
fn endpoints(&self) -> Vec<Endpoint>[src]
fn disconnect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn box_clone(&self) -> Box<dyn DeviceImpl>[src]
fn get_event_receiver(&self) -> BoundedDeviceEventBroadcaster[src]
fn read_value<'life0, 'async_trait>(
&'life0 self,
msg: DeviceReadCmd
) -> Pin<Box<dyn Future<Output = Result<RawReading, ButtplugError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
msg: DeviceReadCmd
) -> Pin<Box<dyn Future<Output = Result<RawReading, ButtplugError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn write_value<'life0, 'async_trait>(
&'life0 self,
msg: DeviceWriteCmd
) -> Pin<Box<dyn Future<Output = Result<(), ButtplugError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
msg: DeviceWriteCmd
) -> Pin<Box<dyn Future<Output = Result<(), ButtplugError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn subscribe<'life0, 'async_trait>(
&'life0 self,
_msg: DeviceSubscribeCmd
) -> Pin<Box<dyn Future<Output = Result<(), ButtplugError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
_msg: DeviceSubscribeCmd
) -> Pin<Box<dyn Future<Output = Result<(), ButtplugError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn unsubscribe<'life0, 'async_trait>(
&'life0 self,
_msg: DeviceUnsubscribeCmd
) -> Pin<Box<dyn Future<Output = Result<(), ButtplugError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
_msg: DeviceUnsubscribeCmd
) -> Pin<Box<dyn Future<Output = Result<(), ButtplugError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for TestDevice
impl Send for TestDevice
impl Sync for TestDevice
impl Unpin for TestDevice
impl !UnwindSafe for TestDevice
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> GetTypeId for T where
T: Any, [src]
T: Any,
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,