pub struct NewObject<T: 'static> { /* private fields */ }Expand description
A fresh Rust payload returned by a synchronous callback.
Register T before the callback runs. Rustia checks every fresh-object
registration and live result before allocating any guest return values.
This can be mixed with ordinary and live results in a tuple.
Implementations§
Auto Trait Implementations§
impl<T> Freeze for NewObject<T>where
T: Freeze,
impl<T> RefUnwindSafe for NewObject<T>where
T: RefUnwindSafe,
impl<T> Send for NewObject<T>where
T: Send,
impl<T> Sync for NewObject<T>where
T: Sync,
impl<T> Unpin for NewObject<T>where
T: Unpin,
impl<T> UnsafeUnpin for NewObject<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for NewObject<T>where
T: UnwindSafe,
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