pub struct PeerAccounting {
pub balance: Option<BigInt>,
pub consumed_balance: Option<BigInt>,
pub threshold_received: Option<BigInt>,
pub threshold_given: Option<BigInt>,
pub current_threshold_received: Option<BigInt>,
pub current_threshold_given: Option<BigInt>,
pub surplus_balance: Option<BigInt>,
pub reserved_balance: Option<BigInt>,
pub shadow_reserved_balance: Option<BigInt>,
pub ghost_balance: Option<BigInt>,
}Expand description
Full per-peer accounting state (richer than Balance). All
monetary fields are PLUR.
Fields§
§balance: Option<BigInt>Live settlement balance.
consumed_balance: Option<BigInt>Past-due consumption balance.
threshold_received: Option<BigInt>Configured received-credit threshold.
threshold_given: Option<BigInt>Configured given-credit threshold.
current_threshold_received: Option<BigInt>Dynamic received-credit threshold.
current_threshold_given: Option<BigInt>Dynamic given-credit threshold.
surplus_balance: Option<BigInt>Surplus balance.
reserved_balance: Option<BigInt>Reserved-balance (in-flight credits).
shadow_reserved_balance: Option<BigInt>Shadow-reserved balance.
ghost_balance: Option<BigInt>Ghost balance (recovered after disconnect).
Trait Implementations§
Source§impl Clone for PeerAccounting
impl Clone for PeerAccounting
Source§fn clone(&self) -> PeerAccounting
fn clone(&self) -> PeerAccounting
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PeerAccounting
impl Debug for PeerAccounting
Source§impl Default for PeerAccounting
impl Default for PeerAccounting
Source§fn default() -> PeerAccounting
fn default() -> PeerAccounting
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PeerAccounting
impl<'de> Deserialize<'de> for PeerAccounting
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
Source§impl PartialEq for PeerAccounting
impl PartialEq for PeerAccounting
Source§fn eq(&self, other: &PeerAccounting) -> bool
fn eq(&self, other: &PeerAccounting) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PeerAccounting
impl StructuralPartialEq for PeerAccounting
Auto Trait Implementations§
impl Freeze for PeerAccounting
impl RefUnwindSafe for PeerAccounting
impl Send for PeerAccounting
impl Sync for PeerAccounting
impl Unpin for PeerAccounting
impl UnsafeUnpin for PeerAccounting
impl UnwindSafe for PeerAccounting
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