pub struct RendUseCount {
pub idhex: String,
pub used: f64,
pub weight: f64,
}Expand description
Rendezvous point usage count for a single relay.
Tracks how many times a relay has been used as a rendezvous point and its expected weight based on consensus bandwidth.
Fields§
§idhex: StringThe relay’s fingerprint.
used: f64Number of times this relay has been used.
weight: f64Expected usage weight based on bandwidth.
Implementations§
Trait Implementations§
Source§impl Clone for RendUseCount
impl Clone for RendUseCount
Source§fn clone(&self) -> RendUseCount
fn clone(&self) -> RendUseCount
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 RendUseCount
impl Debug for RendUseCount
Source§impl<'de> Deserialize<'de> for RendUseCount
impl<'de> Deserialize<'de> for RendUseCount
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 RendUseCount
impl PartialEq for RendUseCount
Source§impl Serialize for RendUseCount
impl Serialize for RendUseCount
impl StructuralPartialEq for RendUseCount
Auto Trait Implementations§
impl Freeze for RendUseCount
impl RefUnwindSafe for RendUseCount
impl Send for RendUseCount
impl Sync for RendUseCount
impl Unpin for RendUseCount
impl UnwindSafe for RendUseCount
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