[][src]Struct bluetooth_serial_port_async::BtSocketConnect

pub struct BtSocketConnect<'a>(_);

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

Implementations

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> !RefUnwindSafe for BtSocketConnect<'a>[src]

impl<'a> !Send for BtSocketConnect<'a>[src]

impl<'a> !Sync for BtSocketConnect<'a>[src]

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

impl<'a> !UnwindSafe for BtSocketConnect<'a>[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.