pub struct FakeClient { /* private fields */ }
Implementations§
Source§impl FakeClient
impl FakeClient
pub fn new() -> Self
Sourcepub fn add_service(
&mut self,
uuid: Uuid,
is_primary: bool,
fake_service: FakePeerService,
)
pub fn add_service( &mut self, uuid: Uuid, is_primary: bool, fake_service: FakePeerService, )
Add a fake peer service to this client.
Trait Implementations§
Source§impl Client<FakeTypes> for FakeClient
impl Client<FakeTypes> for FakeClient
Source§fn find_service(&self, uuid: Uuid) -> <FakeTypes as GattTypes>::FindServicesFut
fn find_service(&self, uuid: Uuid) -> <FakeTypes as GattTypes>::FindServicesFut
Find services by UUID on the peer.
This may cause as much as a full discovery of all services on the peer
if the stack deems it appropriate.
Service information should be up to date at the time returned.
Source§impl Clone for FakeClient
impl Clone for FakeClient
Source§fn clone(&self) -> FakeClient
fn clone(&self) -> FakeClient
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 FakeClient
impl !RefUnwindSafe for FakeClient
impl Send for FakeClient
impl Sync for FakeClient
impl Unpin for FakeClient
impl !UnwindSafe for FakeClient
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