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

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

A wrapper around a future that can easily be rendered with a match statement.

It is used by Smithy to create promises that also cause smithy to re-render when they are completed.

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> Unpin for UnwrappedPromise<S, E>

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

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

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

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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