pub struct StratumServerBuilder<State, CState> {
Show 14 fields pub server_id: u8, pub host: String, pub port: u16, pub api_host: String, pub api_port: u16, pub exported_port: Option<u16>, pub max_connections: Option<usize>, pub proxy: bool, pub var_diff_config: VarDiffConfig, pub upstream_config: UpstreamConfig, pub initial_difficulty: u64, pub state: State, pub connection_state: PhantomData<CState>, pub ready_indicator: ReadyIndicator,
}

Fields

server_id: u8host: Stringport: u16api_host: Stringapi_port: u16exported_port: Option<u16>max_connections: Option<usize>proxy: boolvar_diff_config: VarDiffConfigupstream_config: UpstreamConfiginitial_difficulty: u64state: Stateconnection_state: PhantomData<CState>ready_indicator: ReadyIndicator

Implementations

Trait Implementations

Returns the “default value” for a type. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.