Struct promiser::promise::Promisee
[−]
[src]
pub struct Promisee<T: Send + 'static> { pub p: Promise<T>, // some fields omitted }
Fields
p: Promise<T>
Methods
impl<T: Send + 'static> Promisee<T>
[src]
fn with<W, F: FnMut(&T) -> W>(&self, f: F) -> Result<W, String>
fn wait(&self) -> Result<(), String>
fn get(&self) -> Result<Option<&T>, String>
fn clone(&self) -> Promisee<T>
Trait Implementations
impl<T: Clone + Send + 'static> Clone for Promisee<T>
[src]
fn clone(&self) -> Promisee<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more