pub struct ProcessStartOptions {
pub descriptor: Option<ProcessHandleDescriptor>,
pub spawn_provenance: Option<ProcessSpawnProvenance>,
}Fields§
§descriptor: Option<ProcessHandleDescriptor>§spawn_provenance: Option<ProcessSpawnProvenance>Runtime-internal spawn provenance override. Set by process execution
contexts so children started by a process inherit the parent’s
originator and wake target instead of being stamped with the ephemeral
execution scope. None means the session start path stamps the
creating session (the in-session meaning of “start”). This rides
options — not the request — so in-session callers cannot forge
provenance through the session surface.
Implementations§
Source§impl ProcessStartOptions
impl ProcessStartOptions
pub fn new() -> Self
pub fn with_descriptor(self, descriptor: ProcessHandleDescriptor) -> Self
pub fn with_optional_descriptor( self, descriptor: Option<ProcessHandleDescriptor>, ) -> Self
pub fn with_spawn_provenance( self, spawn_provenance: ProcessSpawnProvenance, ) -> Self
pub fn execution_context( &self, scope: &ProcessOpScope<'_>, ) -> ProcessExecutionContext
Trait Implementations§
Source§impl Clone for ProcessStartOptions
impl Clone for ProcessStartOptions
Source§fn clone(&self) -> ProcessStartOptions
fn clone(&self) -> ProcessStartOptions
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 ProcessStartOptions
impl Debug for ProcessStartOptions
Source§impl Default for ProcessStartOptions
impl Default for ProcessStartOptions
Source§fn default() -> ProcessStartOptions
fn default() -> ProcessStartOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProcessStartOptions
impl RefUnwindSafe for ProcessStartOptions
impl Send for ProcessStartOptions
impl Sync for ProcessStartOptions
impl Unpin for ProcessStartOptions
impl UnsafeUnpin for ProcessStartOptions
impl UnwindSafe for ProcessStartOptions
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