pub struct SingleRingSpRuntime { /* private fields */ }Expand description
In-process SP runtime handle for SingleRing SHM execution.
Implementations§
Source§impl SingleRingSpRuntime
impl SingleRingSpRuntime
Sourcepub fn stage_count(&self) -> usize
pub fn stage_count(&self) -> usize
Number of stage threads in this runtime.
Sourcepub fn active_gating(&self) -> usize
pub fn active_gating(&self) -> usize
Number of active gating cells used by this runtime.
Sourcepub fn snapshot(&self) -> Result<SingleRingSnapshot, ExecError>
pub fn snapshot(&self) -> Result<SingleRingSnapshot, ExecError>
Snapshot cursor + gating sequences without stopping the runtime.
Sourcepub fn any_stage_finished(&self) -> bool
pub fn any_stage_finished(&self) -> bool
True if any stage thread has exited (successfully or with error).
This is intended for control-plane supervision.
Sourcepub fn request_stop(&self)
pub fn request_stop(&self)
Request a cooperative stop.
Sourcepub fn stop_and_join_bounded(self, timeout: Duration) -> Result<(), ExecError>
pub fn stop_and_join_bounded(self, timeout: Duration) -> Result<(), ExecError>
Request stop and join stage threads, but return an error if they don’t stop within timeout.
Notes:
- Rust threads cannot be force-killed safely; this is cooperative stop only.
- On timeout, this returns an error that lists unfinished stages.
Sourcepub fn stop_and_join(self) -> Result<(), ExecError>
pub fn stop_and_join(self) -> Result<(), ExecError>
Request stop and join all stage threads.
Auto Trait Implementations§
impl Freeze for SingleRingSpRuntime
impl !RefUnwindSafe for SingleRingSpRuntime
impl Send for SingleRingSpRuntime
impl Sync for SingleRingSpRuntime
impl Unpin for SingleRingSpRuntime
impl !UnwindSafe for SingleRingSpRuntime
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