pub struct ProxyServer { /* private fields */ }Expand description
A node’s Mesh Proxy service, for one client at a time, as a Bearer:
what the node sends goes to the client (when its filter lets the
destination through) and to relay (the advertising bearer); what the
client sends goes to the node and to relay, unchanged.
Not yet: forwarding to the client what the node only relays, and Node
Identity advertising. A controller that has one advertising set (legacy
advertising only) cannot advertise the service while a relay on the
same host is sending.
Implementations§
Source§impl ProxyServer
impl ProxyServer
Sourcepub async fn new(
host: Host,
relay: Option<Arc<dyn Bearer>>,
) -> Result<Arc<Self>, Error>
pub async fn new( host: Host, relay: Option<Arc<dyn Bearer>>, ) -> Result<Arc<Self>, Error>
Adds the Mesh Proxy service to host’s GATT server. Open the node’s
Mesh on the returned bearer, then ProxyServer::run it.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ProxyServer
impl !RefUnwindSafe for ProxyServer
impl !UnwindSafe for ProxyServer
impl Send for ProxyServer
impl Sync for ProxyServer
impl Unpin for ProxyServer
impl UnsafeUnpin for ProxyServer
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