pub struct SynapsePerformance {
pub connection_id: String,
pub strength: f64,
pub success_rate: f64,
pub total_messages: u64,
pub avg_latency: u64,
pub min_latency: u64,
pub max_latency: u64,
pub plasticity: f64,
pub state: SynapseState,
pub uptime_seconds: u64,
}
Expand description
Synapse performance metrics
Fieldsยง
ยงconnection_id: String
ยงstrength: f64
ยงsuccess_rate: f64
ยงtotal_messages: u64
ยงavg_latency: u64
ยงmin_latency: u64
ยงmax_latency: u64
ยงplasticity: f64
ยงstate: SynapseState
ยงuptime_seconds: u64
Trait Implementationsยง
Sourceยงimpl Clone for SynapsePerformance
impl Clone for SynapsePerformance
Sourceยงfn clone(&self) -> SynapsePerformance
fn clone(&self) -> SynapsePerformance
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 SynapsePerformance
impl Debug for SynapsePerformance
Sourceยงimpl<'de> Deserialize<'de> for SynapsePerformance
impl<'de> Deserialize<'de> for SynapsePerformance
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 SynapsePerformance
impl RefUnwindSafe for SynapsePerformance
impl Send for SynapsePerformance
impl Sync for SynapsePerformance
impl Unpin for SynapsePerformance
impl UnwindSafe for SynapsePerformance
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