Skip to main content

IntoSandbox

Trait IntoSandbox 

Source
pub trait IntoSandbox {
    // Required method
    fn into_sandbox(self) -> Arc<dyn Sandbox> ⓘ;
}
Expand description

What the builder’s sandbox(..) setter takes: a sandbox by value, an Arc of one, or an Arc<dyn Sandbox> (kept as is, so the agent’s sandbox is the same instance).

Required Methods§

Source

fn into_sandbox(self) -> Arc<dyn Sandbox> ⓘ

The sandbox, shared.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoSandbox for Arc<dyn Sandbox>

Source§

impl<S: Sandbox> IntoSandbox for Arc<S>

Implementors§