pub struct OpenStandardMiningChannelSuccess<'decoder> {
pub request_id: U32AsRef<'decoder>,
pub channel_id: u32,
pub target: U256<'decoder>,
pub extranonce_prefix: B032<'decoder>,
pub group_channel_id: u32,
}Expand description
Message used by upstream to accept OpenStandardMiningChannel request from downstream.
Fields§
§request_id: U32AsRef<'decoder>Used for matching requests/responses.
Specified by downstream role and should be extracted from the corresponding
OpenStandardMiningChannel message.
channel_id: u32Newly assigned identifier of the channel, stable for the whole lifetime of the connection.
This will also be used for broadcasting new jobs by crate::NewMiningJob.
target: U256<'decoder>Initial target for the mining channel.
extranonce_prefix: B032<'decoder>Bytes used as implicit first part of extranonce for the scenario when the job is served by the downstream role for a set of standard channels that belong to the same group.
group_channel_id: u32Group channel into which the new channel belongs. See SetGroupChannel for details.
Implementations§
Source§impl<'decoder> OpenStandardMiningChannelSuccess<'decoder>
impl<'decoder> OpenStandardMiningChannelSuccess<'decoder>
pub fn into_static(self) -> OpenStandardMiningChannelSuccess<'static>
Source§impl<'decoder> OpenStandardMiningChannelSuccess<'decoder>
impl<'decoder> OpenStandardMiningChannelSuccess<'decoder>
pub fn as_static(&self) -> OpenStandardMiningChannelSuccess<'static>
Trait Implementations§
Source§impl<'decoder> Clone for OpenStandardMiningChannelSuccess<'decoder>
impl<'decoder> Clone for OpenStandardMiningChannelSuccess<'decoder>
Source§fn clone(&self) -> OpenStandardMiningChannelSuccess<'decoder>
fn clone(&self) -> OpenStandardMiningChannelSuccess<'decoder>
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§impl<'decoder> Debug for OpenStandardMiningChannelSuccess<'decoder>
impl<'decoder> Debug for OpenStandardMiningChannelSuccess<'decoder>
Source§impl<'decoder> Decodable<'decoder> for OpenStandardMiningChannelSuccess<'decoder>
impl<'decoder> Decodable<'decoder> for OpenStandardMiningChannelSuccess<'decoder>
Source§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§impl Display for OpenStandardMiningChannelSuccess<'_>
impl Display for OpenStandardMiningChannelSuccess<'_>
Source§impl<'decoder> From<OpenStandardMiningChannelSuccess<'decoder>> for EncodableField<'decoder>
impl<'decoder> From<OpenStandardMiningChannelSuccess<'decoder>> for EncodableField<'decoder>
Source§fn from(v: OpenStandardMiningChannelSuccess<'decoder>) -> Self
fn from(v: OpenStandardMiningChannelSuccess<'decoder>) -> Self
Converts to this type from the input type.
Source§impl<'decoder> GetSize for OpenStandardMiningChannelSuccess<'decoder>
impl<'decoder> GetSize for OpenStandardMiningChannelSuccess<'decoder>
Source§impl<'decoder> PartialEq for OpenStandardMiningChannelSuccess<'decoder>
impl<'decoder> PartialEq for OpenStandardMiningChannelSuccess<'decoder>
Source§fn eq(&self, other: &OpenStandardMiningChannelSuccess<'decoder>) -> bool
fn eq(&self, other: &OpenStandardMiningChannelSuccess<'decoder>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'decoder> StructuralPartialEq for OpenStandardMiningChannelSuccess<'decoder>
Auto Trait Implementations§
impl<'decoder> Freeze for OpenStandardMiningChannelSuccess<'decoder>
impl<'decoder> RefUnwindSafe for OpenStandardMiningChannelSuccess<'decoder>
impl<'decoder> Send for OpenStandardMiningChannelSuccess<'decoder>
impl<'decoder> Sync for OpenStandardMiningChannelSuccess<'decoder>
impl<'decoder> Unpin for OpenStandardMiningChannelSuccess<'decoder>
impl<'decoder> !UnwindSafe for OpenStandardMiningChannelSuccess<'decoder>
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