v0.3.9-pre.002-fix.001

This commit is contained in:
2026-09-04 14:23:54 +02:00
parent 7d0710a1e6
commit 156d237460
9 changed files with 210 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-worker-api/src/stop.rs
// version: 1
// version: 2
/// Runtime-neutral cloneable token carrying cooperative Worker stop intent.
#[derive(Clone)]
@@ -7,7 +7,7 @@ pub struct WorkerStopToken {
requested: std::sync::Arc<std::sync::atomic::AtomicBool>,
}
impl WorkerStopToken {
impl crate::WorkerStopToken {
/// Creates a token with no stop request.
#[must_use]
pub fn new() -> Self {
@@ -27,13 +27,13 @@ impl WorkerStopToken {
}
}
impl std::default::Default for WorkerStopToken {
impl std::default::Default for crate::WorkerStopToken {
fn default() -> Self {
return Self::new();
}
}
impl std::fmt::Debug for WorkerStopToken {
impl std::fmt::Debug for crate::WorkerStopToken {
fn fmt(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
return formatter.debug_struct("WorkerStopToken").field("stop_requested", &self.is_stop_requested()).finish();
}