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

A frame that can be used to root Julia data and call async methods.

Frames created with a capacity can store at least that number of roots. A frame’s capacity is at least 16.

Implementations

An async version of Frame::scope.

The closure func must return an async block. Note that the returned value is required to live at least as long the current frame.

An async version of Frame::scope_with_capacity.

The closure func must return an async block. Note that the returned value is required to live at least as long the current frame.

AsyncFrame::async_scope with less strict lifeitme bounds on the return value.

Safety: because this method only requires that the returned data lives at least as long as the borow of self, it’s possible to return data rooted in that scope.

AsyncFrame::async_scope_wit_capacity with less strict lifeitme bounds on the return value.

Safety: because this method only requires that the returned data lives at least as long as the borow of self, it’s possible to return data rooted in that scope.

Trait Implementations

Reserve a new reusable slot in the current frame. Read more

Returns the number of values currently rooted in this frame.

Returns the maximum number of values that can be rooted in this frame.

Reserve a new output in the current frame. Read more

Convert the frame to a scope. Read more

Create a new scope and call func with that scope’s frame. Read more

Create a new scope and call func with that scope’s frame. 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

Returns the argument unchanged.

Enable or disable the GC.

Enable or disable GC logging. Read more

Returns true if the GC is enabled.

Force a collection.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.