Struct sosistab::ClientConfig
source · pub struct ClientConfig {
pub server_addr: SocketAddr,
pub server_pk: PublicKey,
pub gather: Arc<StatsGatherer>,
pub protocol: Protocol,
pub shard_count: usize,
pub reset_interval: Option<Duration>,
}
Expand description
Configuration of a client.
Fields§
§server_addr: SocketAddr
§server_pk: PublicKey
§gather: Arc<StatsGatherer>
§protocol: Protocol
§shard_count: usize
§reset_interval: Option<Duration>
Implementations§
source§impl ClientConfig
impl ClientConfig
Trait Implementations§
source§impl Clone for ClientConfig
impl Clone for ClientConfig
source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more