[][src]Struct bluetooth_serial_port::BtSocketConnect

pub struct BtSocketConnect<'a>(_);

Manages the bluetooth connection process when used from an asynchronous client.

Methods

impl<'a> BtSocketConnect<'a>[src]

pub 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.

Trait Implementations

impl<'a> Debug for BtSocketConnect<'a>[src]

Auto Trait Implementations

impl<'a> Send for BtSocketConnect<'a>

impl<'a> Sync for BtSocketConnect<'a>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]