pub struct SimulateGattDisconnection {
pub method: SimulateGattDisconnectionMethod,
pub params: SimulateGattDisconnectionParams,
}Expand description
Simulates a GATT disconnection from the peripheral with |address|. simulateGATTDisconnection
Fields§
§method: SimulateGattDisconnectionMethod§params: SimulateGattDisconnectionParamsImplementations§
Source§impl SimulateGattDisconnection
impl SimulateGattDisconnection
pub const IDENTIFIER: &'static str = "BluetoothEmulation.simulateGATTDisconnection"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SimulateGattDisconnection
impl Clone for SimulateGattDisconnection
Source§fn clone(&self) -> SimulateGattDisconnection
fn clone(&self) -> SimulateGattDisconnection
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 SimulateGattDisconnection
impl CommandResult for SimulateGattDisconnection
type Result = SimulateGattDisconnectionResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for SimulateGattDisconnection
impl Debug for SimulateGattDisconnection
Source§impl<'de> Deserialize<'de> for SimulateGattDisconnection
impl<'de> Deserialize<'de> for SimulateGattDisconnection
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<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<SimulateGattDisconnection> for BrowserProtocolCommands
impl From<SimulateGattDisconnection> for BrowserProtocolCommands
Source§fn from(v: SimulateGattDisconnection) -> Self
fn from(v: SimulateGattDisconnection) -> Self
Converts to this type from the input type.
Source§impl From<SimulateGattDisconnection> for Command
impl From<SimulateGattDisconnection> for Command
Source§fn from(v: SimulateGattDisconnection) -> Self
fn from(v: SimulateGattDisconnection) -> Self
Converts to this type from the input type.
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<BrowserProtocolCommands> for SimulateGattDisconnection
impl TryFrom<BrowserProtocolCommands> for SimulateGattDisconnection
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, <SimulateGattDisconnection as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SimulateGattDisconnection as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for SimulateGattDisconnection
impl TryFrom<Command> for SimulateGattDisconnection
impl StructuralPartialEq for SimulateGattDisconnection
Auto Trait Implementations§
impl Freeze for SimulateGattDisconnection
impl RefUnwindSafe for SimulateGattDisconnection
impl Send for SimulateGattDisconnection
impl Sync for SimulateGattDisconnection
impl Unpin for SimulateGattDisconnection
impl UnsafeUnpin for SimulateGattDisconnection
impl UnwindSafe for SimulateGattDisconnection
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