pub enum PromiseError {
Empty,
Dropped,
}
Expand description
An error that may occur when trying to get the value from a Promise
, see Promise::try_get
.
Variants§
Empty
The resolver has not yet sent a value.
Dropped
The resolver was dropped before sending a value.
Trait Implementations§
Source§impl Clone for PromiseError
impl Clone for PromiseError
Source§fn clone(&self) -> PromiseError
fn clone(&self) -> PromiseError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PromiseError
impl Debug for PromiseError
Source§impl Display for PromiseError
impl Display for PromiseError
Source§impl Error for PromiseError
impl Error for PromiseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for PromiseError
impl PartialEq for PromiseError
impl Eq for PromiseError
impl StructuralPartialEq for PromiseError
Auto Trait Implementations§
impl Freeze for PromiseError
impl RefUnwindSafe for PromiseError
impl Send for PromiseError
impl Sync for PromiseError
impl Unpin for PromiseError
impl UnwindSafe for PromiseError
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