Skip to main content

Context

Trait Context 

Source
pub trait Context {
    // Required method
    fn make_current(&self) -> &dyn Scope;
}
Expand description

A cross cutting concern for carrying execution-scoped values across API boundaries (both in-process and distributed).

Required Methods§

Source

fn make_current(&self) -> &dyn Scope

Make this context the currently active context. The returned handle is used to return the previous context (if one existed) as active.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§