[−][src]Struct stratum_server::StratumServer
Methods
impl<SM> StratumServer<SM> where
SM: StratumManager + 'static,
[src]
SM: StratumManager + 'static,
pub fn new(
config: ServerConfig,
data_provider: Arc<SM::DataProvider>,
auth_manager: Arc<SM::AuthManager>,
block_validator: Arc<SM::BlockValidator>
) -> Self
[src]
config: ServerConfig,
data_provider: Arc<SM::DataProvider>,
auth_manager: Arc<SM::AuthManager>,
block_validator: Arc<SM::BlockValidator>
) -> Self
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,
SM::StratumParams: Clone,
[src]
SM::DataProvider: Clone,
SM::AuthManager: Clone,
SM::BlockValidator: Clone,
SM::StratumParams: Clone,
fn clone(&self) -> StratumServer<SM>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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,
<<SM as StratumManager>::StratumParams as StratumParams>::Notify: Send,
<SM as StratumManager>::StratumParams: StratumParams,
<SM as StratumManager>::AuthManager: Send + Sync,
<SM as StratumManager>::BlockValidator: Send + Sync,
<SM as StratumManager>::DataProvider: Send + Sync,
<<SM as StratumManager>::StratumParams as StratumParams>::Notify: Send,
<SM as StratumManager>::StratumParams: StratumParams,
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,
<<SM as StratumManager>::StratumParams as StratumParams>::Notify: Send,
<SM as StratumManager>::StratumParams: StratumParams,
<SM as StratumManager>::AuthManager: Send + Sync,
<SM as StratumManager>::BlockValidator: Send + Sync,
<SM as StratumManager>::DataProvider: Send + Sync,
<<SM as StratumManager>::StratumParams as StratumParams>::Notify: Send,
<SM as StratumManager>::StratumParams: StratumParams,
impl<SM> Unpin for StratumServer<SM>
impl<SM> !UnwindSafe for StratumServer<SM>
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,