Struct rquickjs_core::runtime::AsyncWeakRuntime
source · pub struct AsyncWeakRuntime { /* private fields */ }
Expand description
A weak handle to the async runtime.
Holding onto this struct does not prevent the runtime from being dropped.
Implementations§
source§impl AsyncWeakRuntime
impl AsyncWeakRuntime
pub fn try_ref(&self) -> Option<AsyncRuntime>
Trait Implementations§
source§impl Clone for AsyncWeakRuntime
impl Clone for AsyncWeakRuntime
source§fn clone(&self) -> AsyncWeakRuntime
fn clone(&self) -> AsyncWeakRuntime
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for AsyncWeakRuntime
impl !Send for AsyncWeakRuntime
impl !Sync for AsyncWeakRuntime
impl Unpin for AsyncWeakRuntime
impl !UnwindSafe for AsyncWeakRuntime
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