Struct pr47::util::serializer::CoroutineSharedData[][src]

pub struct CoroutineSharedData { /* fields omitted */ }
Expand description

Context shared by all coroutines in the same serialization group

Implementations

Creates a new SharedContext.

Add a new task to context, saving the “completion signal receiver” to the context, returning the allocated task ID.

The allocated task ID starts from 1 instead of 0, since the main task is not managed by SharedContext.

Remove the given task from context, together with its “completion signal receiver”. This is called on child task exit, in order to reduce the burden of main task.

Retrieve all tasks and their “completion signal receiver”, cleaning internal storage of SharedContext. This is used by main task to await for all running child tasks.

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.

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.