[][src]Struct smithy::types::UnwrappedPromise

pub struct UnwrappedPromise<S, E> { /* fields omitted */ }

Methods

impl<S, E> UnwrappedPromise<S, E> where
    E: 'static,
    S: 'static, 
[src]

pub fn new<impl Future + 'static, impl Fn() + 'static>(
    future: impl Future + 'static,
    callback: Option<impl Fn() + 'static>
) -> UnwrappedPromise<S, E> where
    impl Fn() + 'static: 'static + Fn(),
    impl Future + 'static: 'static + Future<Item = S, Error = E>, 
[src]

Methods from Deref<Target = Rc<RefCell<PromiseState<S, E>>>>

Trait Implementations

impl<S, E> Deref for UnwrappedPromise<S, E>[src]

type Target = Rc<RefCell<PromiseState<S, E>>>

The resulting type after dereferencing.

Auto Trait Implementations

impl<S, E> !Send for UnwrappedPromise<S, E>

impl<S, E> !Sync for UnwrappedPromise<S, E>

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> Any for T where
    T: 'static + ?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.