pub enum Params<PP, SP>where
PP: PoolParams,
SP: StratumParams,{
Authorize(PP::Authorize),
Submit(SP::Submit),
Subscribe(PP::Subscribe),
Notify(SP::Notify),
SetDifficulty(SetDiff),
Unknown(Value),
}Variants§
Authorize(PP::Authorize)
Submit(SP::Submit)
Subscribe(PP::Subscribe)
Notify(SP::Notify)
SetDifficulty(SetDiff)
Unknown(Value)
Trait Implementations§
Source§impl<'de, PP, SP> Deserialize<'de> for Params<PP, SP>where
PP: PoolParams,
SP: StratumParams,
PP::Authorize: Deserialize<'de>,
SP::Submit: Deserialize<'de>,
PP::Subscribe: Deserialize<'de>,
SP::Notify: Deserialize<'de>,
impl<'de, PP, SP> Deserialize<'de> for Params<PP, SP>where
PP: PoolParams,
SP: StratumParams,
PP::Authorize: Deserialize<'de>,
SP::Submit: Deserialize<'de>,
PP::Subscribe: Deserialize<'de>,
SP::Notify: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<PP, SP> Freeze for Params<PP, SP>where
<PP as PoolParams>::Authorize: Freeze,
<SP as StratumParams>::Submit: Freeze,
<PP as PoolParams>::Subscribe: Freeze,
<SP as StratumParams>::Notify: Freeze,
impl<PP, SP> RefUnwindSafe for Params<PP, SP>where
<PP as PoolParams>::Authorize: RefUnwindSafe,
<SP as StratumParams>::Submit: RefUnwindSafe,
<PP as PoolParams>::Subscribe: RefUnwindSafe,
<SP as StratumParams>::Notify: RefUnwindSafe,
impl<PP, SP> Send for Params<PP, SP>
impl<PP, SP> Sync for Params<PP, SP>
impl<PP, SP> Unpin for Params<PP, SP>where
<PP as PoolParams>::Authorize: Unpin,
<SP as StratumParams>::Submit: Unpin,
<PP as PoolParams>::Subscribe: Unpin,
<SP as StratumParams>::Notify: Unpin,
impl<PP, SP> UnwindSafe for Params<PP, SP>where
<PP as PoolParams>::Authorize: UnwindSafe,
<SP as StratumParams>::Submit: UnwindSafe,
<PP as PoolParams>::Subscribe: UnwindSafe,
<SP as StratumParams>::Notify: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more