pub struct SubmitSharesStandard {
pub channel_id: u32,
pub sequence_number: u32,
pub job_id: u32,
pub nonce: u32,
pub ntime: u32,
pub version: u32,
}Expand description
Message used by downstream to send result of its hashing work to an upstream.
Fields§
§channel_id: u32Channel identification.
sequence_number: u32Unique sequential identifier of the submit within the channel.
job_id: u32Identifier of the job as provided by NewMiningJob or NewExtendedMiningJob message.
nonce: u32Nonce leading to the hash being submitted.
ntime: u32The nTime field in the block header. This must be greater than or equal to the
header_timestamp field in the latest SetNewPrevHash message and lower than or equal
to that value plus the number of seconds since the receipt of that message.
version: u32Full nVersion field.
Implementations§
pub fn into_static(self) -> SubmitSharesStandard
pub fn as_static(&self) -> SubmitSharesStandard
Trait Implementations§
Source§fn clone(&self) -> SubmitSharesStandard
fn clone(&self) -> SubmitSharesStandard
Returns a duplicate 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§fn get_structure(data: &[u8]) -> Result<Vec<FieldMarker>, Error>
fn get_structure(data: &[u8]) -> Result<Vec<FieldMarker>, Error>
Defines the expected structure of a type based on binary data. Read more
Source§fn from_decoded_fields(
data: Vec<DecodableField<'decoder>>,
) -> Result<Self, Error>
fn from_decoded_fields( data: Vec<DecodableField<'decoder>>, ) -> Result<Self, Error>
Constructs the type from a vector of decoded fields. Read more
Source§fn from(v: SubmitSharesStandard) -> Self
fn from(v: SubmitSharesStandard) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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