pub struct ForkRequest {
pub id: u64,
pub mode: RunnerMode,
pub env: BTreeMap<String, String>,
pub cwd: String,
}Expand description
A request to the fork server: start a runner process.
Four descriptors come with it (SCM_RIGHTS, on the message’s first bytes), in order: the
process’s end of its channel, its stdout, its stderr, and the shim’s end of the status
socket.
Fields§
§id: u64The request’s ID, repeated in the answer.
mode: RunnerModeWhat the process runs (parse or task); it shakes hands on its channel as a spawned
runner does.
env: BTreeMap<String, String>The process’s whole environment.
cwd: StringThe process’s working directory.
Trait Implementations§
Source§impl Clone for ForkRequest
impl Clone for ForkRequest
Source§fn clone(&self) -> ForkRequest
fn clone(&self) -> ForkRequest
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 ForkRequest
impl Debug for ForkRequest
Source§impl<'de> Deserialize<'de> for ForkRequest
impl<'de> Deserialize<'de> for ForkRequest
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 ForkRequest
Source§impl JsonSchema for ForkRequest
impl JsonSchema for ForkRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ForkRequest
impl PartialEq for ForkRequest
Source§impl Serialize for ForkRequest
impl Serialize for ForkRequest
impl StructuralPartialEq for ForkRequest
Auto Trait Implementations§
impl Freeze for ForkRequest
impl RefUnwindSafe for ForkRequest
impl Send for ForkRequest
impl Sync for ForkRequest
impl Unpin for ForkRequest
impl UnsafeUnpin for ForkRequest
impl UnwindSafe for ForkRequest
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