pub struct SimulatePreconnectedPeripheralParams {
pub address: String,
pub name: String,
pub manufacturerData: Vec<ManufacturerData>,
pub knownServiceUuids: Vec<String>,
}Expand description
Simulates a peripheral with |address|, |name| and |knownServiceUuids| that has already been connected to the system.
Fields§
§address: String§name: String§manufacturerData: Vec<ManufacturerData>§knownServiceUuids: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for SimulatePreconnectedPeripheralParams
impl Clone for SimulatePreconnectedPeripheralParams
Source§fn clone(&self) -> SimulatePreconnectedPeripheralParams
fn clone(&self) -> SimulatePreconnectedPeripheralParams
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 Default for SimulatePreconnectedPeripheralParams
impl Default for SimulatePreconnectedPeripheralParams
Source§fn default() -> SimulatePreconnectedPeripheralParams
fn default() -> SimulatePreconnectedPeripheralParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SimulatePreconnectedPeripheralParams
impl<'de> Deserialize<'de> for SimulatePreconnectedPeripheralParams
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
Auto Trait Implementations§
impl Freeze for SimulatePreconnectedPeripheralParams
impl RefUnwindSafe for SimulatePreconnectedPeripheralParams
impl Send for SimulatePreconnectedPeripheralParams
impl Sync for SimulatePreconnectedPeripheralParams
impl Unpin for SimulatePreconnectedPeripheralParams
impl UnsafeUnpin for SimulatePreconnectedPeripheralParams
impl UnwindSafe for SimulatePreconnectedPeripheralParams
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