pub enum ExportValueRef {
Stub(StubReference),
Promise(Arc<Mutex<Option<Sender<Option<Result<Value, Value>>>>>>),
Resolved(Value),
Rejected(Value),
}
Expand description
Reference to export value (for returning from get())
Variants§
Stub(StubReference)
Promise(Arc<Mutex<Option<Sender<Option<Result<Value, Value>>>>>>)
Resolved(Value)
Rejected(Value)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExportValueRef
impl !RefUnwindSafe for ExportValueRef
impl Send for ExportValueRef
impl Sync for ExportValueRef
impl Unpin for ExportValueRef
impl !UnwindSafe for ExportValueRef
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