[−][src]Struct smithy::types::UnwrappedPromise
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]
E: 'static,
S: 'static,
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]
future: impl Future
callback: Option<impl Fn() + 'static>
) -> UnwrappedPromise<S, E> where
impl Fn() + 'static: 'static + Fn(),
impl Future
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.
fn deref(&self) -> &Rc<RefCell<PromiseState<S, E>>>
[src]
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]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,