pub struct SpawnSpec {
pub command: String,
pub args: Vec<String>,
pub env: BTreeMap<String, String>,
pub cwd: Option<String>,
pub shutdown_grace_ms: u64,
}Expand description
The spawn endpoint form: Pointlock owns the daemon process.
Fields§
§command: StringDaemon command (default devicerail-daemon, PATH-resolved).
args: Vec<String>Daemon arguments (default empty: the daemon serves stdio NDJSON when started without arguments).
env: BTreeMap<String, String>Extra environment for the child.
cwd: Option<String>Working directory for the child.
shutdown_grace_ms: u64Grace period of the exit protocol (stdin EOF → wait → kill).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpawnSpec
impl<'de> Deserialize<'de> for SpawnSpec
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 SpawnSpec
impl StructuralPartialEq for SpawnSpec
Auto Trait Implementations§
impl Freeze for SpawnSpec
impl RefUnwindSafe for SpawnSpec
impl Send for SpawnSpec
impl Sync for SpawnSpec
impl Unpin for SpawnSpec
impl UnsafeUnpin for SpawnSpec
impl UnwindSafe for SpawnSpec
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