pub struct SandboxBuilder { /* private fields */ }Expand description
What a sandbox is made of: Client::create_sandbox, then what differs
from 1 vCPU, 1024 MiB, seed 0, the image’s variables, and a name after
the image; awaited, the sandbox, once it’s running.
Implementations§
Source§impl SandboxBuilder
impl SandboxBuilder
pub fn cpus(self, cpus: u32) -> Self
pub fn memory_mib(self, memory_mib: u32) -> Self
Sourcepub fn seed(self, seed: u64) -> Self
pub fn seed(self, seed: u64) -> Self
The seed of everything random in it, so a run is the same each time.
Sourcepub fn env(self, name: impl Into<String>, value: impl Into<String>) -> Self
pub fn env(self, name: impl Into<String>, value: impl Into<String>) -> Self
A variable for its processes, beside the image’s.
pub fn name(self, name: impl Into<String>) -> Self
Trait Implementations§
Source§impl IntoFuture for SandboxBuilder
impl IntoFuture for SandboxBuilder
Source§type IntoFuture = Pin<Box<dyn Future<Output = Result<Sandbox, Error>> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<Sandbox, Error>> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SandboxBuilder
impl !UnwindSafe for SandboxBuilder
impl Forget for SandboxBuilder
impl Freeze for SandboxBuilder
impl Send for SandboxBuilder
impl Sync for SandboxBuilder
impl Unpin for SandboxBuilder
impl UnsafeUnpin for SandboxBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more