pub enum BluetoothEmulationCommands {
Show 15 variants
Enable(Enable),
SetSimulatedCentralState(SetSimulatedCentralState),
Disable(Disable),
SimulatePreconnectedPeripheral(SimulatePreconnectedPeripheral),
SimulateAdvertisement(SimulateAdvertisement),
SimulateGattOperationResponse(SimulateGattOperationResponse),
SimulateCharacteristicOperationResponse(SimulateCharacteristicOperationResponse),
SimulateDescriptorOperationResponse(SimulateDescriptorOperationResponse),
AddService(AddService),
RemoveService(RemoveService),
AddCharacteristic(AddCharacteristic),
RemoveCharacteristic(RemoveCharacteristic),
AddDescriptor(AddDescriptor),
RemoveDescriptor(RemoveDescriptor),
SimulateGattDisconnection(SimulateGattDisconnection),
}Variants§
Enable(Enable)
SetSimulatedCentralState(SetSimulatedCentralState)
Disable(Disable)
SimulatePreconnectedPeripheral(SimulatePreconnectedPeripheral)
SimulateAdvertisement(SimulateAdvertisement)
SimulateGattOperationResponse(SimulateGattOperationResponse)
SimulateCharacteristicOperationResponse(SimulateCharacteristicOperationResponse)
SimulateDescriptorOperationResponse(SimulateDescriptorOperationResponse)
AddService(AddService)
RemoveService(RemoveService)
AddCharacteristic(AddCharacteristic)
RemoveCharacteristic(RemoveCharacteristic)
AddDescriptor(AddDescriptor)
RemoveDescriptor(RemoveDescriptor)
SimulateGattDisconnection(SimulateGattDisconnection)
Implementations§
Source§impl BluetoothEmulationCommands
impl BluetoothEmulationCommands
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for BluetoothEmulationCommands
impl Clone for BluetoothEmulationCommands
Source§fn clone(&self) -> BluetoothEmulationCommands
fn clone(&self) -> BluetoothEmulationCommands
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BluetoothEmulationCommands
impl Debug for BluetoothEmulationCommands
Source§impl<'de> Deserialize<'de> for BluetoothEmulationCommands
impl<'de> Deserialize<'de> for BluetoothEmulationCommands
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AddCharacteristic> for BluetoothEmulationCommands
impl From<AddCharacteristic> for BluetoothEmulationCommands
Source§fn from(v: AddCharacteristic) -> Self
fn from(v: AddCharacteristic) -> Self
Converts to this type from the input type.
Source§impl From<AddDescriptor> for BluetoothEmulationCommands
impl From<AddDescriptor> for BluetoothEmulationCommands
Source§fn from(v: AddDescriptor) -> Self
fn from(v: AddDescriptor) -> Self
Converts to this type from the input type.
Source§impl From<AddService> for BluetoothEmulationCommands
impl From<AddService> for BluetoothEmulationCommands
Source§fn from(v: AddService) -> Self
fn from(v: AddService) -> Self
Converts to this type from the input type.
Source§impl From<BluetoothEmulationCommands> for BrowserProtocolCommands
impl From<BluetoothEmulationCommands> for BrowserProtocolCommands
Source§fn from(v: BluetoothEmulationCommands) -> Self
fn from(v: BluetoothEmulationCommands) -> Self
Converts to this type from the input type.
Source§impl From<BluetoothEmulationCommands> for Command
impl From<BluetoothEmulationCommands> for Command
Source§fn from(v: BluetoothEmulationCommands) -> Self
fn from(v: BluetoothEmulationCommands) -> Self
Converts to this type from the input type.
Source§impl From<Disable> for BluetoothEmulationCommands
impl From<Disable> for BluetoothEmulationCommands
Source§impl From<Enable> for BluetoothEmulationCommands
impl From<Enable> for BluetoothEmulationCommands
Source§impl From<RemoveCharacteristic> for BluetoothEmulationCommands
impl From<RemoveCharacteristic> for BluetoothEmulationCommands
Source§fn from(v: RemoveCharacteristic) -> Self
fn from(v: RemoveCharacteristic) -> Self
Converts to this type from the input type.
Source§impl From<RemoveDescriptor> for BluetoothEmulationCommands
impl From<RemoveDescriptor> for BluetoothEmulationCommands
Source§fn from(v: RemoveDescriptor) -> Self
fn from(v: RemoveDescriptor) -> Self
Converts to this type from the input type.
Source§impl From<RemoveService> for BluetoothEmulationCommands
impl From<RemoveService> for BluetoothEmulationCommands
Source§fn from(v: RemoveService) -> Self
fn from(v: RemoveService) -> Self
Converts to this type from the input type.
Source§impl From<SetSimulatedCentralState> for BluetoothEmulationCommands
impl From<SetSimulatedCentralState> for BluetoothEmulationCommands
Source§fn from(v: SetSimulatedCentralState) -> Self
fn from(v: SetSimulatedCentralState) -> Self
Converts to this type from the input type.
Source§impl From<SimulateAdvertisement> for BluetoothEmulationCommands
impl From<SimulateAdvertisement> for BluetoothEmulationCommands
Source§fn from(v: SimulateAdvertisement) -> Self
fn from(v: SimulateAdvertisement) -> Self
Converts to this type from the input type.
Source§impl From<SimulateCharacteristicOperationResponse> for BluetoothEmulationCommands
impl From<SimulateCharacteristicOperationResponse> for BluetoothEmulationCommands
Source§fn from(v: SimulateCharacteristicOperationResponse) -> Self
fn from(v: SimulateCharacteristicOperationResponse) -> Self
Converts to this type from the input type.
Source§impl From<SimulateDescriptorOperationResponse> for BluetoothEmulationCommands
impl From<SimulateDescriptorOperationResponse> for BluetoothEmulationCommands
Source§fn from(v: SimulateDescriptorOperationResponse) -> Self
fn from(v: SimulateDescriptorOperationResponse) -> Self
Converts to this type from the input type.
Source§impl From<SimulateGattDisconnection> for BluetoothEmulationCommands
impl From<SimulateGattDisconnection> for BluetoothEmulationCommands
Source§fn from(v: SimulateGattDisconnection) -> Self
fn from(v: SimulateGattDisconnection) -> Self
Converts to this type from the input type.
Source§impl From<SimulateGattOperationResponse> for BluetoothEmulationCommands
impl From<SimulateGattOperationResponse> for BluetoothEmulationCommands
Source§fn from(v: SimulateGattOperationResponse) -> Self
fn from(v: SimulateGattOperationResponse) -> Self
Converts to this type from the input type.
Source§impl From<SimulatePreconnectedPeripheral> for BluetoothEmulationCommands
impl From<SimulatePreconnectedPeripheral> for BluetoothEmulationCommands
Source§fn from(v: SimulatePreconnectedPeripheral) -> Self
fn from(v: SimulatePreconnectedPeripheral) -> Self
Converts to this type from the input type.
Source§impl TryFrom<BluetoothEmulationCommands> for AddCharacteristic
impl TryFrom<BluetoothEmulationCommands> for AddCharacteristic
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <AddCharacteristic as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <AddCharacteristic as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BluetoothEmulationCommands> for AddDescriptor
impl TryFrom<BluetoothEmulationCommands> for AddDescriptor
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <AddDescriptor as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <AddDescriptor as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BluetoothEmulationCommands> for AddService
impl TryFrom<BluetoothEmulationCommands> for AddService
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <AddService as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <AddService as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BluetoothEmulationCommands> for Disable
impl TryFrom<BluetoothEmulationCommands> for Disable
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <Disable as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <Disable as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BluetoothEmulationCommands> for Enable
impl TryFrom<BluetoothEmulationCommands> for Enable
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <Enable as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <Enable as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BluetoothEmulationCommands> for RemoveCharacteristic
impl TryFrom<BluetoothEmulationCommands> for RemoveCharacteristic
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <RemoveCharacteristic as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <RemoveCharacteristic as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BluetoothEmulationCommands> for RemoveDescriptor
impl TryFrom<BluetoothEmulationCommands> for RemoveDescriptor
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <RemoveDescriptor as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <RemoveDescriptor as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BluetoothEmulationCommands> for RemoveService
impl TryFrom<BluetoothEmulationCommands> for RemoveService
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <RemoveService as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <RemoveService as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BluetoothEmulationCommands> for SetSimulatedCentralState
impl TryFrom<BluetoothEmulationCommands> for SetSimulatedCentralState
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <SetSimulatedCentralState as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <SetSimulatedCentralState as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BluetoothEmulationCommands> for SimulateAdvertisement
impl TryFrom<BluetoothEmulationCommands> for SimulateAdvertisement
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <SimulateAdvertisement as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <SimulateAdvertisement as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BluetoothEmulationCommands> for SimulateCharacteristicOperationResponse
impl TryFrom<BluetoothEmulationCommands> for SimulateCharacteristicOperationResponse
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <SimulateCharacteristicOperationResponse as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <SimulateCharacteristicOperationResponse as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BluetoothEmulationCommands> for SimulateDescriptorOperationResponse
impl TryFrom<BluetoothEmulationCommands> for SimulateDescriptorOperationResponse
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <SimulateDescriptorOperationResponse as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <SimulateDescriptorOperationResponse as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BluetoothEmulationCommands> for SimulateGattDisconnection
impl TryFrom<BluetoothEmulationCommands> for SimulateGattDisconnection
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <SimulateGattDisconnection as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <SimulateGattDisconnection as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BluetoothEmulationCommands> for SimulateGattOperationResponse
impl TryFrom<BluetoothEmulationCommands> for SimulateGattOperationResponse
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <SimulateGattOperationResponse as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <SimulateGattOperationResponse as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BluetoothEmulationCommands> for SimulatePreconnectedPeripheral
impl TryFrom<BluetoothEmulationCommands> for SimulatePreconnectedPeripheral
Source§type Error = BluetoothEmulationCommands
type Error = BluetoothEmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BluetoothEmulationCommands,
) -> Result<Self, <SimulatePreconnectedPeripheral as TryFrom<BluetoothEmulationCommands>>::Error>
fn try_from( e: BluetoothEmulationCommands, ) -> Result<Self, <SimulatePreconnectedPeripheral as TryFrom<BluetoothEmulationCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BrowserProtocolCommands> for BluetoothEmulationCommands
impl TryFrom<BrowserProtocolCommands> for BluetoothEmulationCommands
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <BluetoothEmulationCommands as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <BluetoothEmulationCommands as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for BluetoothEmulationCommands
impl TryFrom<Command> for BluetoothEmulationCommands
impl StructuralPartialEq for BluetoothEmulationCommands
Auto Trait Implementations§
impl Freeze for BluetoothEmulationCommands
impl RefUnwindSafe for BluetoothEmulationCommands
impl Send for BluetoothEmulationCommands
impl Sync for BluetoothEmulationCommands
impl Unpin for BluetoothEmulationCommands
impl UnsafeUnpin for BluetoothEmulationCommands
impl UnwindSafe for BluetoothEmulationCommands
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
Mutably borrows from an owned value. Read more