Struct Scope Guard

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

1pub struct ScopeGuard<'a> { /* private fields */ }

RAII guard for a host scope opened by PluginRuntime::scope.

Implementations

impl<'a> ScopeGuard<'a>

impl<'a> ScopeGuard<'a>

handle

pub fn handle(&self) -> Option<&ScopeHandle<'a>>

Returns the active scope handle.

close

pub fn close(
    &mut self,
    output: Option<&Json>,
    metadata: Option<&Json>,
) -> Result<()>

Pops the scope with optional output and metadata.

Trait Implementations

impl Drop for ScopeGuard<'_>

impl Drop for ScopeGuard<'_>

drop

fn drop(&mut self)