[][src]Struct stratum_types::ClientResponse

pub struct ClientResponse<SP: StratumPackets> {
    pub id: u32,
    pub method: StratumMethod,
    pub result: PoolParams<SP>,
    pub error: Option<Vec<String>>,
}

Fields

id: u32method: StratumMethodresult: PoolParams<SP>error: Option<Vec<String>>

Trait Implementations

impl<'de, SP: StratumPackets> Deserialize<'de> for ClientResponse<SP> where
    SP: Deserialize<'de>, 
[src]

impl<SP: StratumPackets> Serialize for ClientResponse<SP> where
    SP: Serialize
[src]

Auto Trait Implementations

impl<SP> RefUnwindSafe for ClientResponse<SP> where
    <SP as StratumPackets>::Notify: RefUnwindSafe,
    <SP as StratumPackets>::SetDifficulty: RefUnwindSafe,
    <SP as StratumPackets>::SetExtraNonce: RefUnwindSafe,
    <SP as StratumPackets>::SetGoal: RefUnwindSafe

impl<SP> Send for ClientResponse<SP> where
    <SP as StratumPackets>::Notify: Send,
    <SP as StratumPackets>::SetDifficulty: Send,
    <SP as StratumPackets>::SetExtraNonce: Send,
    <SP as StratumPackets>::SetGoal: Send

impl<SP> Sync for ClientResponse<SP> where
    <SP as StratumPackets>::Notify: Sync,
    <SP as StratumPackets>::SetDifficulty: Sync,
    <SP as StratumPackets>::SetExtraNonce: Sync,
    <SP as StratumPackets>::SetGoal: Sync

impl<SP> Unpin for ClientResponse<SP> where
    <SP as StratumPackets>::Notify: Unpin,
    <SP as StratumPackets>::SetDifficulty: Unpin,
    <SP as StratumPackets>::SetExtraNonce: Unpin,
    <SP as StratumPackets>::SetGoal: Unpin

impl<SP> UnwindSafe for ClientResponse<SP> where
    <SP as StratumPackets>::Notify: UnwindSafe,
    <SP as StratumPackets>::SetDifficulty: UnwindSafe,
    <SP as StratumPackets>::SetExtraNonce: UnwindSafe,
    <SP as StratumPackets>::SetGoal: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.