[−][src]Struct bluetooth_serial_port_async::BtSocketConnect
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,