pub enum NodeEvent {
NodeStarting {
node_id: u32,
},
NodeStarted {
node_id: u32,
pid: u32,
},
NodeStopping {
node_id: u32,
},
NodeStopped {
node_id: u32,
},
NodeCrashed {
node_id: u32,
exit_code: Option<i32>,
},
NodeRestarting {
node_id: u32,
attempt: u32,
},
NodeErrored {
node_id: u32,
message: String,
},
DownloadStarted {
version: String,
},
DownloadProgress {
bytes: u64,
total: u64,
},
DownloadComplete {
version: String,
path: PathBuf,
},
UpgradeScheduled {
node_id: u32,
pending_version: String,
},
NodeUpgraded {
node_id: u32,
old_version: String,
new_version: String,
},
}Expand description
Structured events emitted by the daemon supervisor and long-running operations.
Serialized to JSON for SSE streaming at GET /api/v1/events.
Variants§
NodeStarting
NodeStarted
NodeStopping
NodeStopped
NodeCrashed
NodeRestarting
NodeErrored
DownloadStarted
DownloadProgress
DownloadComplete
UpgradeScheduled
Emitted when the supervisor detects that a node’s on-disk binary has been replaced by its auto-upgrade, ahead of the node process restarting.
NodeUpgraded
Emitted after the supervisor has respawned a node against its replaced binary and observed the new version.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeEvent
impl<'de> Deserialize<'de> for NodeEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NodeEvent
impl RefUnwindSafe for NodeEvent
impl Send for NodeEvent
impl Sync for NodeEvent
impl Unpin for NodeEvent
impl UnsafeUnpin for NodeEvent
impl UnwindSafe for NodeEvent
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