pub struct PromiseHandle { /* private fields */ }Expand description
A handle to a pending or settled result.
Implementations§
Source§impl PromiseHandle
impl PromiseHandle
Sourcepub fn is_settled(&self) -> bool
pub fn is_settled(&self) -> bool
Whether the promise has settled.
Trait Implementations§
Source§impl Clone for PromiseHandle
impl Clone for PromiseHandle
Auto Trait Implementations§
impl !RefUnwindSafe for PromiseHandle
impl !Send for PromiseHandle
impl !Sync for PromiseHandle
impl !UnwindSafe for PromiseHandle
impl Freeze for PromiseHandle
impl Unpin for PromiseHandle
impl UnsafeUnpin for PromiseHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more