pub struct SandboxInfo {Show 20 fields
pub id: String,
pub name: Option<String>,
pub image: String,
pub kind: String,
pub command: String,
pub status: String,
pub running: bool,
pub exit_code: Option<i32>,
pub pid: Option<i64>,
pub detached: bool,
pub cpus: u32,
pub mem: u64,
pub volume: Option<String>,
pub state_dir: String,
pub network: Option<String>,
pub net_ip: Option<String>,
pub ports: Vec<PortForward>,
pub created_at: i64,
pub finished_at: Option<i64>,
pub origin: Option<String>,
}Expand description
A machine as reported by bsdkrun ps --json (or the daemon’s machines
query).
Fields§
§id: String§name: Option<String>§image: String§kind: String§command: String§status: String§running: bool§exit_code: Option<i32>§pid: Option<i64>§detached: bool§cpus: u32§mem: u64§volume: Option<String>§state_dir: String§network: Option<String>§net_ip: Option<String>§ports: Vec<PortForward>§created_at: i64§finished_at: Option<i64>§origin: Option<String>The snapshot this machine was branched from, if any.
Implementations§
Source§impl SandboxInfo
impl SandboxInfo
Sourcepub fn from_row(row: &Value) -> SandboxInfo
pub fn from_row(row: &Value) -> SandboxInfo
Build from a CLI ps --json row (snake_case).
Sourcepub fn from_graphql(m: &Value) -> SandboxInfo
pub fn from_graphql(m: &Value) -> SandboxInfo
Build from a GraphQL Machine (the MACHINE_FIELDS selection).
Trait Implementations§
Source§impl Clone for SandboxInfo
impl Clone for SandboxInfo
Source§fn clone(&self) -> SandboxInfo
fn clone(&self) -> SandboxInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SandboxInfo
impl Debug for SandboxInfo
Source§impl PartialEq for SandboxInfo
impl PartialEq for SandboxInfo
impl StructuralPartialEq for SandboxInfo
Auto Trait Implementations§
impl Freeze for SandboxInfo
impl RefUnwindSafe for SandboxInfo
impl Send for SandboxInfo
impl Sync for SandboxInfo
impl Unpin for SandboxInfo
impl UnsafeUnpin for SandboxInfo
impl UnwindSafe for SandboxInfo
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