Struct jlrs::extensions::multitask::async_frame::AsyncGcFrame[][src]

pub struct AsyncGcFrame<'frame> { /* fields omitted */ }
Expand description

A frame is used to root Julia data, which guarantees the garbage collector doesn’t free the data while the frame has not been dropped. More information about this topic can be found in the memory module.

An AsyncGcFrame offers the same functionality as a GcFrame, and some additional async methods that can be used to create nested async scopes. It can also be used to call the trait methods of CallAsync.

Implementations

An async version of Scope::value_scope. Rather than a closure, it takes an async closure that provides a new AsyncGcFrame.

An async version of Scope::value_scope_with_slots. Rather than a closure, it takes an async closure that provides a new AsyncGcFrame.

An async version of Scope::result_scope. Rather than a closure, it takes an async closure that provides a new AsyncGcFrame.

An async version of Scope::result_scope_with_slots. Rather than a closure, it takes an async closure that provides a new AsyncGcFrame.

An async version of ScopeExt::scope. Rather than a closure, it takes an async closure that provides a new AsyncGcFrame.

An async version of ScopeExt::scope_with_slots. Rather than a closure, it takes an async closure that provides a new AsyncGcFrame.

Returns the number of values currently rooted in this frame.

Returns the maximum number of slots this frame can use.

Trait Implementations

Executes the destructor for this type. Read more

Returns the number of values currently rooted in this frame.

Returns the maximum number of slots this frame can use.

This method takes a mutable reference to a frame and returns it; this method can be used as an alternative to reborrowing a frame with &mut *frame when a Scope is needed. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Enable or disable the GC.

Returns true if the GC is enabled.

Force a collection.

Insert a safepoint, a point where the garbage collector may run.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.