pub struct ProxyBearer { /* private fields */ }Expand description
A connection to a node’s Mesh Proxy service, as a Bearer.
Implementations§
Source§impl ProxyBearer
impl ProxyBearer
Sourcepub async fn connect(host: &Host, peer: Address) -> Result<Arc<Self>, Error>
pub async fn connect(host: &Host, peer: Address) -> Result<Arc<Self>, Error>
Connects to peer (a node advertising the Mesh Proxy service),
exchanges the MTU, and subscribes to Data Out.
Sourcepub async fn on(conn: Connection) -> Result<Arc<Self>, Error>
pub async fn on(conn: Connection) -> Result<Arc<Self>, Error>
The bearer on a connection already made.
Sourcepub fn connection(&self) -> &Connection
pub fn connection(&self) -> &Connection
The connection.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ProxyBearer
impl !RefUnwindSafe for ProxyBearer
impl !UnwindSafe for ProxyBearer
impl Forget for ProxyBearer
impl Move for ProxyBearer
impl Send for ProxyBearer
impl Sync for ProxyBearer
impl Unpin for ProxyBearer
impl UnsafeUnpin for ProxyBearer
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