Struct bluetooth_serial_port::BtSocketConnect
[−]
[src]
pub struct BtSocketConnect<'a>(_);
Manages the bluetooth connection process when used from an asynchronous client.
Methods
impl<'a> BtSocketConnect<'a>
[src]
fn advance(&mut self) -> Result<BtAsync, BtError>
[src]
Advance the connection process to the next state
Usage: When receiving a new BtSocketConnect
instance call this function to get the
connection process started, then wait for the condition requested in BtAsync
to apply
(by polling for it in a mio.Poll
instance in general). Once the condition is met, invoke
this function again to advance to the next connect step. Repeat this process until you reach
BtAsync::Done
, then discard this object and enjoy your established connection.