pub struct SimulatePreconnectedPeripheral {
pub method: SimulatePreconnectedPeripheralMethod,
pub params: SimulatePreconnectedPeripheralParams,
}Expand description
Simulates a peripheral with |address|, |name| and |knownServiceUuids| that has already been connected to the system. simulatePreconnectedPeripheral
Fields§
§method: SimulatePreconnectedPeripheralMethod§params: SimulatePreconnectedPeripheralParamsImplementations§
Source§impl SimulatePreconnectedPeripheral
impl SimulatePreconnectedPeripheral
pub fn builder() -> SimulatePreconnectedPeripheralBuilder
Source§impl SimulatePreconnectedPeripheral
impl SimulatePreconnectedPeripheral
pub const IDENTIFIER: &'static str = "BluetoothEmulation.simulatePreconnectedPeripheral"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SimulatePreconnectedPeripheral
impl Clone for SimulatePreconnectedPeripheral
Source§fn clone(&self) -> SimulatePreconnectedPeripheral
fn clone(&self) -> SimulatePreconnectedPeripheral
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 CommandResult for SimulatePreconnectedPeripheral
impl CommandResult for SimulatePreconnectedPeripheral
type Result = SimulatePreconnectedPeripheralResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl<'de> Deserialize<'de> for SimulatePreconnectedPeripheral
impl<'de> Deserialize<'de> for SimulatePreconnectedPeripheral
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<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 From<SimulatePreconnectedPeripheral> for BrowserProtocolCommands
impl From<SimulatePreconnectedPeripheral> for BrowserProtocolCommands
Source§fn from(v: SimulatePreconnectedPeripheral) -> Self
fn from(v: SimulatePreconnectedPeripheral) -> Self
Converts to this type from the input type.
Source§impl From<SimulatePreconnectedPeripheral> for Command
impl From<SimulatePreconnectedPeripheral> for Command
Source§fn from(v: SimulatePreconnectedPeripheral) -> Self
fn from(v: SimulatePreconnectedPeripheral) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SimulatePreconnectedPeripheral
impl PartialEq for SimulatePreconnectedPeripheral
Source§fn eq(&self, other: &SimulatePreconnectedPeripheral) -> bool
fn eq(&self, other: &SimulatePreconnectedPeripheral) -> bool
Tests for
self and other values to be equal, and is used by ==.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 SimulatePreconnectedPeripheral
impl TryFrom<BrowserProtocolCommands> for SimulatePreconnectedPeripheral
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, <SimulatePreconnectedPeripheral as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SimulatePreconnectedPeripheral as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for SimulatePreconnectedPeripheral
Auto Trait Implementations§
impl Freeze for SimulatePreconnectedPeripheral
impl RefUnwindSafe for SimulatePreconnectedPeripheral
impl Send for SimulatePreconnectedPeripheral
impl Sync for SimulatePreconnectedPeripheral
impl Unpin for SimulatePreconnectedPeripheral
impl UnsafeUnpin for SimulatePreconnectedPeripheral
impl UnwindSafe for SimulatePreconnectedPeripheral
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