pub struct ProcessStartRequest {
pub id: String,
pub input: ProcessInput,
pub env_spec: Option<ProcessExecutionEnvSpec>,
pub originator: ProcessOriginator,
pub wake_target: Option<SessionScope>,
pub grant: Option<ProcessStartGrant>,
pub event_types: Vec<ProcessEventType>,
}Expand description
Public host-facing request for starting a visible process handle.
Fields§
§id: String§input: ProcessInput§env_spec: Option<ProcessExecutionEnvSpec>§originator: ProcessOriginator§wake_target: Option<SessionScope>§grant: Option<ProcessStartGrant>§event_types: Vec<ProcessEventType>Implementations§
Source§impl ProcessStartRequest
impl ProcessStartRequest
pub fn new( id: impl Into<String>, input: ProcessInput, originator: ProcessOriginator, ) -> ProcessStartRequest
pub fn external( id: impl Into<String>, originator: ProcessOriginator, metadata: Value, ) -> ProcessStartRequest
pub fn with_env_spec( self, env_spec: ProcessExecutionEnvSpec, ) -> ProcessStartRequest
pub fn with_wake_target( self, wake_target: Option<SessionScope>, ) -> ProcessStartRequest
pub fn with_grant(self, grant: Option<ProcessStartGrant>) -> ProcessStartRequest
pub fn with_event_types( self, event_types: impl IntoIterator<Item = ProcessEventType>, ) -> ProcessStartRequest
pub fn with_extra_event_types( self, event_types: impl IntoIterator<Item = ProcessEventType>, ) -> ProcessStartRequest
pub fn into_registration( self, env_ref: Option<ProcessExecutionEnvRef>, ) -> ProcessRegistration
Trait Implementations§
Source§impl Clone for ProcessStartRequest
impl Clone for ProcessStartRequest
Source§fn clone(&self) -> ProcessStartRequest
fn clone(&self) -> ProcessStartRequest
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 ProcessStartRequest
impl Debug for ProcessStartRequest
Source§impl<'de> Deserialize<'de> for ProcessStartRequest
impl<'de> Deserialize<'de> for ProcessStartRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProcessStartRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProcessStartRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ProcessStartRequest
impl Serialize for ProcessStartRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ProcessStartRequest
impl !UnwindSafe for ProcessStartRequest
impl Freeze for ProcessStartRequest
impl Send for ProcessStartRequest
impl Sync for ProcessStartRequest
impl Unpin for ProcessStartRequest
impl UnsafeUnpin for ProcessStartRequest
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