pub struct SandboxSpec { /* private fields */ }Implementations§
Source§impl SandboxSpec
impl SandboxSpec
pub const CPUS: RangeInclusive<u32>
pub const MEMORY_MIB: RangeInclusive<u32>
Sourcepub const SEEDS: RangeInclusive<u64>
pub const SEEDS: RangeInclusive<u64>
Bounded below 2^53 so JSON numbers pass unmodified across JavaScript clients.
pub fn name(&self) -> &str
pub fn image(&self) -> &ImageReference
pub fn entrypoint(&self) -> Option<&str>
pub fn command(&self) -> &[String]
pub fn takes_commands(&self) -> bool
pub fn environment(&self) -> &[EnvironmentVariable]
pub fn cpus(&self) -> u32
pub fn memory_mib(&self) -> u32
pub fn seed(&self) -> u64
pub fn network(&self) -> &SandboxNetwork
pub fn with_network(self, network: SandboxNetwork) -> Result<Self, SpecError>
pub fn footprint(&self) -> Capacity
Trait Implementations§
Source§impl Clone for SandboxSpec
impl Clone for SandboxSpec
Source§impl Debug for SandboxSpec
impl Debug for SandboxSpec
Source§impl<'de> Deserialize<'de> for SandboxSpec
impl<'de> Deserialize<'de> for SandboxSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SandboxSpec
Source§impl From<SandboxSpec> for SandboxDraft
impl From<SandboxSpec> for SandboxDraft
Source§fn from(spec: SandboxSpec) -> Self
fn from(spec: SandboxSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SandboxSpec
impl PartialEq for SandboxSpec
Source§impl Serialize for SandboxSpec
impl Serialize for SandboxSpec
impl StructuralPartialEq for SandboxSpec
Source§impl TryFrom<SandboxDraft> for SandboxSpec
impl TryFrom<SandboxDraft> for SandboxSpec
Auto Trait Implementations§
impl Forget for SandboxSpec
impl Freeze for SandboxSpecwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<EnvironmentVariable>: Freeze,
impl Move for SandboxSpec
impl RefUnwindSafe for SandboxSpec
impl Send for SandboxSpecwhere
RawVecInner: Send,
impl Sync for SandboxSpecwhere
RawVecInner: Sync,
impl Unpin for SandboxSpec
impl UnsafeUnpin for SandboxSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<EnvironmentVariable>: UnsafeUnpin,
impl UnwindSafe for SandboxSpecwhere
RawVecInner: UnwindSafe,
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