pub struct ParticipantLaunch {
pub participant_id: String,
pub execution: ExecutionId,
pub producer: ProducerId,
pub execution_origin: Option<ExecutionOrigin>,
pub namespace: String,
pub robot_id: String,
pub bus: BusProfile,
pub clock: ClockMode,
pub config: Option<Value>,
pub bundle_root: Option<PathBuf>,
pub component_instance: Option<String>,
pub shutdown_grace_ms: u64,
}Expand description
One participant’s process launch record.
Fields§
§participant_id: String§execution: ExecutionId§producer: ProducerId§execution_origin: Option<ExecutionOrigin>§namespace: String§robot_id: String§bus: BusProfile§clock: ClockMode§config: Option<Value>§bundle_root: Option<PathBuf>§component_instance: Option<String>§shutdown_grace_ms: u64Implementations§
Source§impl ParticipantLaunch
impl ParticipantLaunch
pub fn local( participant_id: impl Into<String>, robot_id: impl Into<String>, ) -> Self
pub fn in_execution(self, execution: ExecutionId) -> Self
pub fn with_execution_origin(self, origin: ExecutionOrigin) -> Self
Sourcepub fn encode_env(&self) -> Result<Vec<(&'static str, String)>, LaunchError>
pub fn encode_env(&self) -> Result<Vec<(&'static str, String)>, LaunchError>
Encode the complete shared environment ABI.
Sourcepub fn decode(values: LaunchEnv) -> Result<Self, LaunchError>
pub fn decode(values: LaunchEnv) -> Result<Self, LaunchError>
Decode values obtained from CLI flags or environment variables.
Trait Implementations§
Source§impl Clone for ParticipantLaunch
impl Clone for ParticipantLaunch
Source§fn clone(&self) -> ParticipantLaunch
fn clone(&self) -> ParticipantLaunch
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 ParticipantLaunch
impl Debug for ParticipantLaunch
Source§impl<'de> Deserialize<'de> for ParticipantLaunch
impl<'de> Deserialize<'de> for ParticipantLaunch
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
Source§impl PartialEq for ParticipantLaunch
impl PartialEq for ParticipantLaunch
Source§impl Serialize for ParticipantLaunch
impl Serialize for ParticipantLaunch
impl StructuralPartialEq for ParticipantLaunch
Auto Trait Implementations§
impl Freeze for ParticipantLaunch
impl RefUnwindSafe for ParticipantLaunch
impl Send for ParticipantLaunch
impl Sync for ParticipantLaunch
impl Unpin for ParticipantLaunch
impl UnsafeUnpin for ParticipantLaunch
impl UnwindSafe for ParticipantLaunch
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