[][src]Struct stratum_server::StratumServerBuilder

pub struct StratumServerBuilder<State> {
    pub host: String,
    pub port: u16,
    pub max_connections: Option<usize>,
    pub proxy: bool,
    pub var_diff: bool,
    pub initial_difficulty: f64,
    pub state: State,
}

Fields

host: Stringport: u16max_connections: Option<usize>proxy: boolvar_diff: boolinitial_difficulty: f64state: State

Implementations

impl<State: Clone + Send + Sync + 'static> StratumServerBuilder<State>[src]

pub fn new(state: State) -> Self[src]

pub fn with_host(self, host: &str) -> Self[src]

pub fn with_port(self, port: u16) -> Self[src]

pub fn with_max_connections(self, max_connections: usize) -> Self[src]

pub fn with_proxy(self) -> Self[src]

pub fn with_var_diff(self) -> Self[src]

pub fn with_initial_difficulty(self, difficulty: f64) -> Self[src]

pub fn build(self) -> StratumServer<State>[src]

Trait Implementations

impl<State: Default> Default for StratumServerBuilder<State>[src]

Auto Trait Implementations

impl<State> RefUnwindSafe for StratumServerBuilder<State> where
    State: RefUnwindSafe

impl<State> Send for StratumServerBuilder<State> where
    State: Send

impl<State> Sync for StratumServerBuilder<State> where
    State: Sync

impl<State> Unpin for StratumServerBuilder<State> where
    State: Unpin

impl<State> UnwindSafe for StratumServerBuilder<State> where
    State: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,