pub struct StandardChannel {
pub channel_id: u32,
pub group_id: u32,
pub target: Target,
pub extranonce: Extranonce,
}
Expand description
Standard channels are intended to be used by end mining devices.
Fields§
§channel_id: u32
Newly assigned identifier of the channel, stable for the whole lifetime of the connection.
e.g. it is used for broadcasting new jobs by NewExtendedMiningJob
group_id: u32
Identifier of the group where the standard channel belongs
target: Target
Initial target for the mining channel
extranonce: Extranonce
Extranonce bytes which need to be added to the coinbase to form a fully valid submission: (full coinbase = coinbase_tx_prefix + extranonce_prefix + extranonce + coinbase_tx_suffix).
Trait Implementations§
source§impl Clone for StandardChannel
impl Clone for StandardChannel
source§fn clone(&self) -> StandardChannel
fn clone(&self) -> StandardChannel
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 moreAuto Trait Implementations§
impl Freeze for StandardChannel
impl RefUnwindSafe for StandardChannel
impl Send for StandardChannel
impl Sync for StandardChannel
impl Unpin for StandardChannel
impl UnwindSafe for StandardChannel
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