pub struct Response<PP>where
PP: PoolParams,{
pub id: ID,
pub method: StratumMethod,
pub result: Option<Results<PP>>,
pub error: Option<StratumError>,
}Fields§
§id: ID§method: StratumMethod§result: Option<Results<PP>>§error: Option<StratumError>Trait Implementations§
Source§impl<'de, PP> Deserialize<'de> for Response<PP>where
PP: PoolParams + Deserialize<'de>,
impl<'de, PP> Deserialize<'de> for Response<PP>where
PP: PoolParams + 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> Freeze for Response<PP>
impl<PP> RefUnwindSafe for Response<PP>where
<PP as PoolParams>::AuthorizeResult: RefUnwindSafe,
<PP as PoolParams>::SubscribeResult: RefUnwindSafe,
impl<PP> Send for Response<PP>
impl<PP> Sync for Response<PP>
impl<PP> Unpin for Response<PP>
impl<PP> UnwindSafe for Response<PP>where
<PP as PoolParams>::AuthorizeResult: UnwindSafe,
<PP as PoolParams>::SubscribeResult: 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