pub enum OpResult {
Ok(SerializablePkg),
Err(OpError),
Op2Temp(Box<dyn for<'a> FnOnce(&mut HandleScope<'a>) -> Result<Local<'a, Value>, Error>>),
}
Variants§
Ok(SerializablePkg)
Err(OpError)
Op2Temp(Box<dyn for<'a> FnOnce(&mut HandleScope<'a>) -> Result<Local<'a, Value>, Error>>)
We temporarily provide a mapping function in a box for op2. This will go away when op goes away.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OpResult
impl !Send for OpResult
impl !Sync for OpResult
impl Unpin for OpResult
impl !UnwindSafe for OpResult
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