pub struct Sv1ClientInfo {Show 13 fields
pub client_id: usize,
pub channel_id: Option<u32>,
pub connection_ip: IpAddr,
pub authorized_worker_name: String,
pub user_identity: String,
pub target_hex: String,
pub hashrate: Option<f32>,
pub stable_hashrate: bool,
pub extranonce1_hex: String,
pub extranonce2_len: usize,
pub version_rolling_mask: Option<String>,
pub version_rolling_min_bit: Option<String>,
pub miner_telemetry: Option<MinerTelemetry>,
}Expand description
Information about a single SV1 client connection
Fields§
§client_id: usize§channel_id: Option<u32>§connection_ip: IpAddr§user_identity: String§target_hex: String§hashrate: Option<f32>§stable_hashrate: bool§extranonce1_hex: String§extranonce2_len: usize§version_rolling_mask: Option<String>§version_rolling_min_bit: Option<String>§miner_telemetry: Option<MinerTelemetry>Trait Implementations§
Source§impl Clone for Sv1ClientInfo
impl Clone for Sv1ClientInfo
Source§fn clone(&self) -> Sv1ClientInfo
fn clone(&self) -> Sv1ClientInfo
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 Sv1ClientInfo
impl ComposeSchema for Sv1ClientInfo
Source§impl Debug for Sv1ClientInfo
impl Debug for Sv1ClientInfo
Source§impl<'de> Deserialize<'de> for Sv1ClientInfo
impl<'de> Deserialize<'de> for Sv1ClientInfo
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 Sv1ClientInfo
impl Serialize for Sv1ClientInfo
Auto Trait Implementations§
impl Freeze for Sv1ClientInfo
impl RefUnwindSafe for Sv1ClientInfo
impl Send for Sv1ClientInfo
impl Sync for Sv1ClientInfo
impl Unpin for Sv1ClientInfo
impl UnsafeUnpin for Sv1ClientInfo
impl UnwindSafe for Sv1ClientInfo
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