pub struct SimulateAdvertisement {
pub method: SimulateAdvertisementMethod,
pub params: SimulateAdvertisementParams,
}Expand description
Simulates an advertisement packet described in |entry| being received by the central. simulateAdvertisement
Fields§
§method: SimulateAdvertisementMethod§params: SimulateAdvertisementParamsImplementations§
Source§impl SimulateAdvertisement
impl SimulateAdvertisement
pub fn builder() -> SimulateAdvertisementBuilder
Source§impl SimulateAdvertisement
impl SimulateAdvertisement
pub const IDENTIFIER: &'static str = "BluetoothEmulation.simulateAdvertisement"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SimulateAdvertisement
impl Clone for SimulateAdvertisement
Source§fn clone(&self) -> SimulateAdvertisement
fn clone(&self) -> SimulateAdvertisement
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 SimulateAdvertisement
impl CommandResult for SimulateAdvertisement
type Result = SimulateAdvertisementResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for SimulateAdvertisement
impl Debug for SimulateAdvertisement
Source§impl<'de> Deserialize<'de> for SimulateAdvertisement
impl<'de> Deserialize<'de> for SimulateAdvertisement
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<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<SimulateAdvertisement> for BrowserProtocolCommands
impl From<SimulateAdvertisement> for BrowserProtocolCommands
Source§fn from(v: SimulateAdvertisement) -> Self
fn from(v: SimulateAdvertisement) -> Self
Converts to this type from the input type.
Source§impl From<SimulateAdvertisement> for Command
impl From<SimulateAdvertisement> for Command
Source§fn from(v: SimulateAdvertisement) -> Self
fn from(v: SimulateAdvertisement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SimulateAdvertisement
impl PartialEq for SimulateAdvertisement
Source§impl Serialize for SimulateAdvertisement
impl Serialize for SimulateAdvertisement
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<BrowserProtocolCommands> for SimulateAdvertisement
impl TryFrom<BrowserProtocolCommands> for SimulateAdvertisement
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, <SimulateAdvertisement as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SimulateAdvertisement as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for SimulateAdvertisement
impl TryFrom<Command> for SimulateAdvertisement
impl StructuralPartialEq for SimulateAdvertisement
Auto Trait Implementations§
impl Freeze for SimulateAdvertisement
impl RefUnwindSafe for SimulateAdvertisement
impl Send for SimulateAdvertisement
impl Sync for SimulateAdvertisement
impl Unpin for SimulateAdvertisement
impl UnsafeUnpin for SimulateAdvertisement
impl UnwindSafe for SimulateAdvertisement
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