[−][src]Struct stratum_server::StratumServerBuilder
Fields
host: String
port: u16
max_connections: Option<usize>
proxy: bool
var_diff: bool
initial_difficulty: f64
state: 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]
fn default() -> StratumServerBuilder<State>
[src]
Auto Trait Implementations
impl<State> RefUnwindSafe for StratumServerBuilder<State> where
State: RefUnwindSafe,
State: RefUnwindSafe,
impl<State> Send for StratumServerBuilder<State> where
State: Send,
State: Send,
impl<State> Sync for StratumServerBuilder<State> where
State: Sync,
State: Sync,
impl<State> Unpin for StratumServerBuilder<State> where
State: Unpin,
State: Unpin,
impl<State> UnwindSafe for StratumServerBuilder<State> where
State: UnwindSafe,
State: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,