pub struct Connection<State> {
Show 23 fields pub session_id: u32, 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 agent: 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 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, pub worker_list: Arc<Mutex<HashMap<u16, AgentWorkerInfo>>>,
}

Fields

session_id: u32sender: Arc<Mutex<UnboundedSender<String>>>upstream_sender: Arc<Mutex<UnboundedSender<String>>>upstream_receiver: Arc<Mutex<UnboundedReceiver<Map<String, Value>>>>authorized: Arc<Mutex<bool>>subscribed: Arc<Mutex<bool>>agent: Arc<Mutex<bool>>session_start: SystemTimeconnection_state: Mutex<ConnectionState>difficulty: Arc<Mutex<f64>>stats: Arc<Mutex<MinerStats>>needs_ban: Arc<Mutex<bool>>next_difficulty: Arc<Mutex<Option<f64>>>id: Uuidjob_stats: Arc<Mutex<JobStats>>options: Arc<MinerOptions>var_diff: Arc<Mutex<bool>>last_message_id: Arc<Mutex<ID>>worker_info: Arc<Mutex<WorkerInfo>>state: Arc<Mutex<State>>stop_source: Arc<Mutex<Option<StopSource>>>stop_token: StopTokenworker_list: Arc<Mutex<HashMap<u16, AgentWorkerInfo>>>

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.