pub struct BackendStatusStreamEntry {
pub status: BackendStatus,
pub termination_reason: Option<TerminationReason>,
pub termination_kind: Option<TerminationKind>,
pub exit_error: Option<bool>,
pub time: LoggableTime,
}
Expand description
A timestamped representation of a backend’s status, along with termination information. This is used for public-facing endpoints. It does not include the backend’s address, which is only available to the controller.
Fields§
§status: BackendStatus
§termination_reason: Option<TerminationReason>
§termination_kind: Option<TerminationKind>
§exit_error: Option<bool>
Whether the process exited with an error. None if the process is still running.
time: LoggableTime
Implementations§
Source§impl BackendStatusStreamEntry
impl BackendStatusStreamEntry
pub fn from_state(state: BackendState, timestamp: DateTime<Utc>) -> Self
Trait Implementations§
Source§impl Clone for BackendStatusStreamEntry
impl Clone for BackendStatusStreamEntry
Source§fn clone(&self) -> BackendStatusStreamEntry
fn clone(&self) -> BackendStatusStreamEntry
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 moreSource§impl Debug for BackendStatusStreamEntry
impl Debug for BackendStatusStreamEntry
Source§impl<'de> Deserialize<'de> for BackendStatusStreamEntry
impl<'de> Deserialize<'de> for BackendStatusStreamEntry
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 BackendStatusStreamEntry
impl RefUnwindSafe for BackendStatusStreamEntry
impl Send for BackendStatusStreamEntry
impl Sync for BackendStatusStreamEntry
impl Unpin for BackendStatusStreamEntry
impl UnwindSafe for BackendStatusStreamEntry
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