Struct stratum_server::StratumServer
source · [−]pub struct StratumServer<State, CState> where
State: Clone + Send + Sync + 'static,
CState: Default + Clone + Send + Sync + 'static, { /* private fields */ }
Implementations
sourceimpl<State: Clone + Send + Sync + 'static, CState: Default + Clone + Send + Sync + 'static> StratumServer<State, CState>
impl<State: Clone + Send + Sync + 'static, CState: Default + Clone + Send + Sync + 'static> StratumServer<State, CState>
pub fn builder(
state: State,
server_id: u8
) -> StratumServerBuilder<State, CState>
pub fn add(&mut self, method: &str, ep: impl Endpoint<State, CState>)
pub fn add_upstream(&mut self, method: &str, ep: impl Endpoint<State, CState>)
pub fn global(&mut self, ep: impl Global<State, CState>)
pub async fn start(&mut self) -> Result<()>
pub fn get_ready_indicator(&self) -> ReadyIndicator
pub fn get_miner_list(&self) -> Arc<MinerList<CState>>
Trait Implementations
Auto Trait Implementations
impl<State, CState> !RefUnwindSafe for StratumServer<State, CState>
impl<State, CState> Send for StratumServer<State, CState>
impl<State, CState> Sync for StratumServer<State, CState>
impl<State, CState> Unpin for StratumServer<State, CState> where
State: Unpin,
impl<State, CState> !UnwindSafe for StratumServer<State, CState>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more