pub struct SimulatePreconnectedPeripheralBuilder { /* private fields */ }Expand description
Builder for SimulatePreconnectedPeripheral.
Implementations§
Source§impl SimulatePreconnectedPeripheralBuilder
impl SimulatePreconnectedPeripheralBuilder
pub fn address<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn manufacturer_data<VALUE: Into<Vec<ManufacturerData>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn known_service_uuids<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<SimulatePreconnectedPeripheral, SimulatePreconnectedPeripheralBuilderError>
pub fn build( &self, ) -> Result<SimulatePreconnectedPeripheral, SimulatePreconnectedPeripheralBuilderError>
Trait Implementations§
Source§impl Clone for SimulatePreconnectedPeripheralBuilder
impl Clone for SimulatePreconnectedPeripheralBuilder
Source§fn clone(&self) -> SimulatePreconnectedPeripheralBuilder
fn clone(&self) -> SimulatePreconnectedPeripheralBuilder
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 moreAuto Trait Implementations§
impl Freeze for SimulatePreconnectedPeripheralBuilder
impl RefUnwindSafe for SimulatePreconnectedPeripheralBuilder
impl Send for SimulatePreconnectedPeripheralBuilder
impl Sync for SimulatePreconnectedPeripheralBuilder
impl Unpin for SimulatePreconnectedPeripheralBuilder
impl UnsafeUnpin for SimulatePreconnectedPeripheralBuilder
impl UnwindSafe for SimulatePreconnectedPeripheralBuilder
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