pub struct MemberChallenge {
pub challenge: Challenge,
pub num_total_members: u64,
pub device_id: u8,
pub num_devices: u8,
}Expand description
The response from the /challenge request.
Fields§
§challenge: ChallengeThe challenge to mine for.
num_total_members: u64The number of total members to divide the nonce space by.
device_id: u8👎Deprecated since 1.2.0: The pool server no longer automatically assigns device IDs. Miners should set their device IDs manually.
The id/index for distinguishing devices the client is using.
num_devices: u8The number of client devices permitted per member.
Trait Implementations§
Source§impl Clone for MemberChallenge
impl Clone for MemberChallenge
Source§fn clone(&self) -> MemberChallenge
fn clone(&self) -> MemberChallenge
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemberChallenge
impl Debug for MemberChallenge
Source§impl<'de> Deserialize<'de> for MemberChallenge
impl<'de> Deserialize<'de> for MemberChallenge
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
Source§impl Serialize for MemberChallenge
impl Serialize for MemberChallenge
impl Copy for MemberChallenge
Auto Trait Implementations§
impl Freeze for MemberChallenge
impl RefUnwindSafe for MemberChallenge
impl Send for MemberChallenge
impl Sync for MemberChallenge
impl Unpin for MemberChallenge
impl UnwindSafe for MemberChallenge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more