pub struct ServerInfo {
pub extended_channels: Vec<ServerExtendedChannelInfo>,
pub standard_channels: Vec<ServerStandardChannelInfo>,
}Expand description
Information about the server (upstream connection)
Fields§
§extended_channels: Vec<ServerExtendedChannelInfo>§standard_channels: Vec<ServerStandardChannelInfo>Implementations§
Source§impl ServerInfo
impl ServerInfo
Sourcepub fn total_channels(&self) -> usize
pub fn total_channels(&self) -> usize
Get total number of channels with the server
Sourcepub fn total_hashrate(&self) -> f32
pub fn total_hashrate(&self) -> f32
Get total hashrate across all server channels
Trait Implementations§
Source§impl Clone for ServerInfo
impl Clone for ServerInfo
Source§fn clone(&self) -> ServerInfo
fn clone(&self) -> ServerInfo
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 ComposeSchema for ServerInfo
impl ComposeSchema for ServerInfo
Source§impl Debug for ServerInfo
impl Debug for ServerInfo
Source§impl<'de> Deserialize<'de> for ServerInfo
impl<'de> Deserialize<'de> for ServerInfo
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 Serialize for ServerInfo
impl Serialize for ServerInfo
Auto Trait Implementations§
impl Freeze for ServerInfo
impl RefUnwindSafe for ServerInfo
impl Send for ServerInfo
impl Sync for ServerInfo
impl Unpin for ServerInfo
impl UnsafeUnpin for ServerInfo
impl UnwindSafe for ServerInfo
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