mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-09 10:57:03 +08:00
refactor: isolate dispatch scheduling core
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
|
||||
pub enum DispatchEffectKind {
|
||||
CandidateFailed,
|
||||
RateLimited,
|
||||
Succeeded,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
|
||||
pub struct DispatchEffect {
|
||||
pub kind: DispatchEffectKind,
|
||||
pub provider_id: String,
|
||||
pub endpoint_id: String,
|
||||
pub key_id: Option<String>,
|
||||
pub candidate_index: u32,
|
||||
pub reason: Option<String>,
|
||||
}
|
||||
Reference in New Issue
Block a user