pub enum SwarmEvent {
TickStart {
tick: u64,
},
TickComplete {
tick: u64,
duration_ns: u64,
metrics: TickMetrics,
},
ManagerStateChange {
manager_id: usize,
new_state: ManagerState,
},
WorkerAction {
worker_id: usize,
action: String,
success: bool,
},
AsyncTaskComplete {
task_id: TaskId,
duration_ms: u64,
},
SystemStart {
worker_count: usize,
},
SystemStop {
total_ticks: u64,
total_duration_ms: u64,
},
}Expand description
Swarm Engine から発行されるイベント
Variants§
TickStart
Tick 開始
TickComplete
Tick 完了
ManagerStateChange
Manager 状態変化
WorkerAction
Worker アクション
AsyncTaskComplete
非同期タスク完了
SystemStart
システム開始
SystemStop
システム停止
Trait Implementations§
Source§impl Clone for SwarmEvent
impl Clone for SwarmEvent
Source§fn clone(&self) -> SwarmEvent
fn clone(&self) -> SwarmEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SwarmEvent
impl RefUnwindSafe for SwarmEvent
impl Send for SwarmEvent
impl Sync for SwarmEvent
impl Unpin for SwarmEvent
impl UnwindSafe for SwarmEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more