[][src]Struct rustable::Pending

pub struct Pending<T: 'static, U: 'static> { /* fields omitted */ }

A struct representing pending Dbus Method-calls.

Many methods in this library return Pending (usually wrapped in Result). These methods are performed issuing a DBus Method-call to the Bluez daemon. This struct represents a pending response, that can be resolved using Bluetooth::resolve()/try_resolve() This allows for multiple DBus requests to be issued at onces allow for more concurrent processing, such as reading multiple characteristics at once.

Notes

  • If using multiple Bluetooth instances in one application, the Pending must be resolved with the Bluetooth instance that created it.
  • Pending implements Drop, that will cause it to be resolved automatically by its parent Bluetooth.

Trait Implementations

impl<T: 'static, U: 'static> Drop for Pending<T, U>[src]

Auto Trait Implementations

impl<T, U> !RefUnwindSafe for Pending<T, U>[src]

impl<T, U> !Send for Pending<T, U>[src]

impl<T, U> !Sync for Pending<T, U>[src]

impl<T, U> Unpin for Pending<T, U> where
    T: Unpin,
    U: Unpin
[src]

impl<T, U> !UnwindSafe for Pending<T, U>[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.