pub struct StartProcessOptions { /* private fields */ }Expand description
Builder for POST /v1/sandboxes/{id}/processes’s optional fields.
Implementations§
Source§impl StartProcessOptions
impl StartProcessOptions
pub fn new() -> Self
pub fn description(self, description: impl Into<String>) -> Self
Sourcepub fn max_runtime_seconds(self, max_runtime_seconds: i64) -> Self
pub fn max_runtime_seconds(self, max_runtime_seconds: i64) -> Self
Hard ceiling on how long the process may run before being force-killed, in seconds. Defaults to 3600; capped server-side at 4h.
Sourcepub fn expose_port(self, expose_port: i32) -> Self
pub fn expose_port(self, expose_port: i32) -> Self
Opt-in port to expose via a signed preview URL once the process is
listening – see docs/NETWORK-INGRESS-DESIGN.md and
POST /v1/sandboxes/{id}/preview/{port}. Leave unset for a normal,
fully network-isolated background process.
Trait Implementations§
Source§impl Clone for StartProcessOptions
impl Clone for StartProcessOptions
Source§impl Debug for StartProcessOptions
impl Debug for StartProcessOptions
Auto Trait Implementations§
impl Freeze for StartProcessOptions
impl RefUnwindSafe for StartProcessOptions
impl Send for StartProcessOptions
impl Sync for StartProcessOptions
impl Unpin for StartProcessOptions
impl UnsafeUnpin for StartProcessOptions
impl UnwindSafe for StartProcessOptions
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