[][src]Struct stratum_server::StratumServer

pub struct StratumServer<SM: StratumManager> { /* fields omitted */ }

Methods

impl<SM> StratumServer<SM> where
    SM: StratumManager + 'static, 
[src]

pub fn new(
    config: ServerConfig,
    data_provider: Arc<SM::DataProvider>,
    auth_manager: Arc<SM::AuthManager>,
    block_validator: Arc<SM::BlockValidator>
) -> Self
[src]

pub async fn start<'_>(&'_ self) -> Result<()>[src]

Trait Implementations

impl<SM: Clone + StratumManager> Clone for StratumServer<SM> where
    SM::DataProvider: Clone,
    SM::AuthManager: Clone,
    SM::BlockValidator: Clone
[src]

Auto Trait Implementations

impl<SM> !RefUnwindSafe for StratumServer<SM>

impl<SM> Send for StratumServer<SM> where
    <SM as StratumManager>::AuthManager: Send + Sync,
    <SM as StratumManager>::BlockValidator: Send + Sync,
    <SM as StratumManager>::DataProvider: Send + Sync

impl<SM> Sync for StratumServer<SM> where
    <SM as StratumManager>::AuthManager: Send + Sync,
    <SM as StratumManager>::BlockValidator: Send + Sync,
    <SM as StratumManager>::DataProvider: Send + Sync

impl<SM> Unpin for StratumServer<SM>

impl<SM> !UnwindSafe for StratumServer<SM>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,