pub struct RelayInfo {
pub connection_count: usize,
pub battery_level: u8,
pub is_charging: bool,
pub role: RelayRole,
pub link_quality: u8,
pub queue_depth: usize,
pub congestion_level: f32,
}Expand description
Information about a potential relay.
Fields§
§connection_count: usizeNumber of connections this device has.
battery_level: u8Battery level (0-100).
is_charging: boolWhether the device is charging.
role: RelayRoleCurrent relay role.
link_quality: u8Link quality to this relay (0-100).
queue_depth: usizeCurrent queue depth at this relay.
congestion_level: f32Congestion level at this relay (0.0-1.0).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RelayInfo
impl RefUnwindSafe for RelayInfo
impl Send for RelayInfo
impl Sync for RelayInfo
impl Unpin for RelayInfo
impl UnsafeUnpin for RelayInfo
impl UnwindSafe for RelayInfo
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