Struct stratum_server::StratumRequest
source · [−]pub struct StratumRequest<State> { /* private fields */ }
Implementations
sourceimpl<State> StratumRequest<State>
impl<State> StratumRequest<State>
pub fn global_vars(&self) -> &GlobalVars
pub fn get_ex_message(&self) -> Option<ExMessageGeneric>
pub fn get_json<T: DeserializeOwned>(&self, name: &str) -> Result<T, Error>
pub fn get_id(&self) -> Result<ID, Error>
Auto Trait Implementations
impl<State> RefUnwindSafe for StratumRequest<State> where
State: RefUnwindSafe,
impl<State> Send for StratumRequest<State> where
State: Send,
impl<State> Sync for StratumRequest<State> where
State: Sync,
impl<State> Unpin for StratumRequest<State> where
State: Unpin,
impl<State> UnwindSafe for StratumRequest<State> where
State: UnwindSafe,
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