Struct aggligator_util::transport::rfcomm::RfcommConnector
source · pub struct RfcommConnector { /* private fields */ }Available on crate feature
rfcomm only.Expand description
Bluetooth RFCOMM transport for outgoing connections.
Implementations§
source§impl RfcommConnector
impl RfcommConnector
sourcepub fn new(remote: SocketAddr) -> Self
pub fn new(remote: SocketAddr) -> Self
Creates a new Bluetooth RFCOMM transport for RFCOMM connections.
The transport establishes one connection to the specified RFCOMM socket address.
sourcepub fn bind(&mut self, local: SocketAddr)
pub fn bind(&mut self, local: SocketAddr)
Binds the outgoing socket to the given local Bluetooth address.
Trait Implementations§
source§impl Clone for RfcommConnector
impl Clone for RfcommConnector
source§fn clone(&self) -> RfcommConnector
fn clone(&self) -> RfcommConnector
Returns a copy 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 ConnectingTransport for RfcommConnector
impl ConnectingTransport for RfcommConnector
Discovers link tags for connecting. Read more
source§fn connect<'life0, 'life1, 'async_trait>(
&'life0 self,
tag: &'life1 dyn LinkTag
) -> Pin<Box<dyn Future<Output = Result<IoBox>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn connect<'life0, 'life1, 'async_trait>(
&'life0 self,
tag: &'life1 dyn LinkTag
) -> Pin<Box<dyn Future<Output = Result<IoBox>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Connects a link tag.
source§fn link_filter<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_new: &'life1 Link<LinkTagBox>,
_existing: &'life2 [Link<LinkTagBox>]
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn link_filter<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_new: &'life1 Link<LinkTagBox>,
_existing: &'life2 [Link<LinkTagBox>]
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Checks whether a new link can be added given existing links.