Struct ketos::exec::Context
[−]
[src]
pub struct Context { // some fields omitted }
Represents an execution context
Methods
impl Context
[src]
fn new(scope: Scope, restrict: RestrictConfig) -> Context
Creates a new execution context.
fn scope(&self) -> &Scope
Returns a reference to the contained scope.
fn with_scope(&self, scope: Scope) -> Context
Creates a new execution context with the given scope.
fn restrict(&self) -> &RestrictConfig
Returns a reference to the contained restriction configuration.
Trait Implementations
impl Clone for Context
[src]
fn clone(&self) -> Context
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more