pub struct ExecutionContext { /* private fields */ }Expand description
Konkrete ExecutionContext-Implementation — Spec §5.2.2.5
(Local-PSM-Variante).
Verwaltet:
- Running/Stopped-State (Spec Fig 5.7).
- Tick-Rate (Hz, Spec §5.2.2.6.4-§5.2.2.6.5).
- Liste der teilnehmenden RTCs (durch Handle gekennzeichnet — die RTCs selbst werden vom Caller gehalten).
ExecutionKind(Spec §5.2.2.7).
Implementations§
Source§impl ExecutionContext
impl ExecutionContext
Sourcepub const fn new(kind: ExecutionKind) -> Self
pub const fn new(kind: ExecutionKind) -> Self
Konstruiert ein neues, gestopptes ExecutionContext mit dem
gegebenen ExecutionKind und Default-Rate 1.0 Hz.
Sourcepub fn with_rate(kind: ExecutionKind, rate_hz: f64) -> Result<Self, ReturnCode>
pub fn with_rate(kind: ExecutionKind, rate_hz: f64) -> Result<Self, ReturnCode>
Trait Implementations§
Source§impl Debug for ExecutionContext
impl Debug for ExecutionContext
Source§impl ExecutionContextOperations for ExecutionContext
impl ExecutionContextOperations for ExecutionContext
Source§fn is_running(&self) -> bool
fn is_running(&self) -> bool
Spec §5.2.2.6.1 —
is_running.Source§fn start(&mut self) -> ReturnCode
fn start(&mut self) -> ReturnCode
Spec §5.2.2.6.2 —
start. Stopped → Running.Source§fn stop(&mut self) -> ReturnCode
fn stop(&mut self) -> ReturnCode
Spec §5.2.2.6.3 —
stop. Running → Stopped.Source§fn add_component(
&mut self,
component: &mut LightweightRtObject,
) -> Result<ExecutionContextHandle, ReturnCode>
fn add_component( &mut self, component: &mut LightweightRtObject, ) -> Result<ExecutionContextHandle, ReturnCode>
Spec §5.2.2.6.6 —
add_component. Read moreSource§fn remove_component(
&mut self,
component: &mut LightweightRtObject,
handle: ExecutionContextHandle,
) -> ReturnCode
fn remove_component( &mut self, component: &mut LightweightRtObject, handle: ExecutionContextHandle, ) -> ReturnCode
Spec §5.2.2.6.7 —
remove_component.Source§fn activate_component(
&mut self,
component: &mut LightweightRtObject,
handle: ExecutionContextHandle,
) -> ReturnCode
fn activate_component( &mut self, component: &mut LightweightRtObject, handle: ExecutionContextHandle, ) -> ReturnCode
Spec §5.2.2.6.8 —
activate_component.Source§fn deactivate_component(
&mut self,
component: &mut LightweightRtObject,
handle: ExecutionContextHandle,
) -> ReturnCode
fn deactivate_component( &mut self, component: &mut LightweightRtObject, handle: ExecutionContextHandle, ) -> ReturnCode
Spec §5.2.2.6.9 —
deactivate_component.Source§fn reset_component(
&mut self,
component: &mut LightweightRtObject,
handle: ExecutionContextHandle,
) -> ReturnCode
fn reset_component( &mut self, component: &mut LightweightRtObject, handle: ExecutionContextHandle, ) -> ReturnCode
Spec §5.2.2.6.10 —
reset_component.Source§fn get_component_state(
&self,
component: &LightweightRtObject,
handle: ExecutionContextHandle,
) -> LifeCycleState
fn get_component_state( &self, component: &LightweightRtObject, handle: ExecutionContextHandle, ) -> LifeCycleState
Spec §5.2.2.6.11 —
get_component_state.Source§fn get_kind(&self) -> ExecutionKind
fn get_kind(&self) -> ExecutionKind
Spec §5.2.2.6.12 —
get_kind.Auto Trait Implementations§
impl Freeze for ExecutionContext
impl RefUnwindSafe for ExecutionContext
impl Send for ExecutionContext
impl Sync for ExecutionContext
impl Unpin for ExecutionContext
impl UnsafeUnpin for ExecutionContext
impl UnwindSafe for ExecutionContext
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