pub struct FakeServer { /* private fields */ }
Implementations§
Source§impl FakeServer
impl FakeServer
pub fn new() -> (Self, UnboundedReceiver<FakeServerEvent>)
pub fn service(&self, id: ServiceId) -> Option<ServiceDefinition>
pub fn incoming_write( &self, peer_id: PeerId, id: ServiceId, handle: Handle, offset: u32, value: Vec<u8>, )
pub fn incoming_read( &self, peer_id: PeerId, id: ServiceId, handle: Handle, offset: u32, )
Trait Implementations§
Source§impl Clone for FakeServer
impl Clone for FakeServer
Source§fn clone(&self) -> FakeServer
fn clone(&self) -> FakeServer
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 Debug for FakeServer
impl Debug for FakeServer
Source§impl Server<FakeTypes> for FakeServer
impl Server<FakeTypes> for FakeServer
Source§fn prepare(
&self,
service: ServiceDefinition,
) -> <FakeTypes as ServerTypes>::LocalServiceFut
fn prepare( &self, service: ServiceDefinition, ) -> <FakeTypes as ServerTypes>::LocalServiceFut
Prepare to publish a service.
This service is not immediately visible in the local GATT server.
It will be published when the LocalService::publish is called.
If the returned LocalService is dropped, the service will be removed
from the Server.
Auto Trait Implementations§
impl Freeze for FakeServer
impl !RefUnwindSafe for FakeServer
impl Send for FakeServer
impl Sync for FakeServer
impl Unpin for FakeServer
impl !UnwindSafe for FakeServer
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