pub struct YinYangBalance {
pub yang_ratio: f32,
pub yin_ratio: f32,
pub yang_count: usize,
pub yin_count: usize,
pub state: BalanceState,
pub total_yang: u64,
pub total_yin: u64,
}Expand description
A snapshot of the Yin-Yang balance.
Fields§
§yang_ratio: f32Current Yang ratio (0.0–1.0).
yin_ratio: f32Current Yin ratio (0.0–1.0).
yang_count: usizeYang count in current window.
yin_count: usizeYin count in current window.
state: BalanceStateCurrent balance state.
total_yang: u64Total Yang dispatches since creation.
total_yin: u64Total Yin dispatches since creation.
Implementations§
Trait Implementations§
Source§impl Clone for YinYangBalance
impl Clone for YinYangBalance
Source§impl Debug for YinYangBalance
impl Debug for YinYangBalance
Source§impl<'de> Deserialize<'de> for YinYangBalance
impl<'de> Deserialize<'de> for YinYangBalance
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 YinYangBalance
impl RefUnwindSafe for YinYangBalance
impl Send for YinYangBalance
impl Sync for YinYangBalance
impl Unpin for YinYangBalance
impl UnsafeUnpin for YinYangBalance
impl UnwindSafe for YinYangBalance
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