pub struct FakeCentral { /* private fields */ }
Implementations§
Source§impl FakeCentral
impl FakeCentral
pub fn new() -> Self
pub fn add_client(&mut self, peer_id: PeerId, client: FakeClient)
Trait Implementations§
Source§impl Central<FakeTypes> for FakeCentral
impl Central<FakeTypes> for FakeCentral
Source§fn scan(&self, _filters: &[ScanFilter]) -> ScannedResultStream
fn scan(&self, _filters: &[ScanFilter]) -> ScannedResultStream
Scan for peers.
If any of the filters match, the results will be returned in the Stream.
Source§fn connect(&self, peer_id: PeerId) -> <FakeTypes as GattTypes>::ConnectFuture
fn connect(&self, peer_id: PeerId) -> <FakeTypes as GattTypes>::ConnectFuture
Connect to a specific peer.
Source§fn periodic_advertising(
&self,
) -> Result<<FakeTypes as GattTypes>::PeriodicAdvertising>
fn periodic_advertising( &self, ) -> Result<<FakeTypes as GattTypes>::PeriodicAdvertising>
Get API for periodic advertising.
Source§impl Clone for FakeCentral
impl Clone for FakeCentral
Source§fn clone(&self) -> FakeCentral
fn clone(&self) -> FakeCentral
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 FakeCentral
impl !RefUnwindSafe for FakeCentral
impl Send for FakeCentral
impl Sync for FakeCentral
impl Unpin for FakeCentral
impl !UnwindSafe for FakeCentral
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