pub struct Connection<State> {Show 22 fields
pub sender: Arc<Mutex<UnboundedSender<String>>>,
pub upstream_sender: Arc<Mutex<UnboundedSender<String>>>,
pub upstream_receiver: Arc<Mutex<UnboundedReceiver<Map<String, Value>>>>,
pub authorized: Arc<Mutex<bool>>,
pub subscribed: Arc<Mutex<bool>>,
pub session_start: SystemTime,
pub connection_state: Mutex<ConnectionState>,
pub difficulty: Arc<Mutex<f64>>,
pub stats: Arc<Mutex<MinerStats>>,
pub needs_ban: Arc<Mutex<bool>>,
pub next_difficulty: Arc<Mutex<Option<f64>>>,
pub id: Uuid,
pub subscriber_id: Arc<Mutex<String>>,
pub miner_info: Arc<RwLock<MinerInfo>>,
pub job_stats: Arc<Mutex<JobStats>>,
pub options: Arc<MinerOptions>,
pub var_diff: Arc<Mutex<bool>>,
pub last_message_id: Arc<Mutex<ID>>,
pub worker_info: Arc<Mutex<WorkerInfo>>,
pub state: Arc<Mutex<State>>,
pub stop_source: Arc<Mutex<Option<StopSource>>>,
pub stop_token: StopToken,
}
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,