pub struct MetricsPosture {
pub enabled: bool,
pub port: u16,
pub bound: bool,
pub error: Option<String>,
}Expand description
What the syncer recorded about its own exposition attempt. Written to the state directory at startup and echoed to the operator: a bind collision has to be VISIBLE, because the design’s answer to it is to keep running, and a degradation nobody can see is indistinguishable from a feature nobody enabled.
Fields§
§enabled: bool§port: u16§bound: boolFalse while enabled is true ⇒ the port was taken (the agent
container is the likely occupant) and the listener is not up.
error: Option<String>Trait Implementations§
Source§impl Clone for MetricsPosture
impl Clone for MetricsPosture
Source§impl Debug for MetricsPosture
impl Debug for MetricsPosture
Source§impl Default for MetricsPosture
impl Default for MetricsPosture
Source§impl<'de> Deserialize<'de> for MetricsPosture
impl<'de> Deserialize<'de> for MetricsPosture
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 MetricsPosture
impl RefUnwindSafe for MetricsPosture
impl Send for MetricsPosture
impl Sync for MetricsPosture
impl Unpin for MetricsPosture
impl UnsafeUnpin for MetricsPosture
impl UnwindSafe for MetricsPosture
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