pub enum JobDeclaration<'a> {
AllocateMiningJobToken(AllocateMiningJobToken<'a>),
AllocateMiningJobTokenSuccess(AllocateMiningJobTokenSuccess<'a>),
DeclareMiningJob(DeclareMiningJob<'a>),
DeclareMiningJobError(DeclareMiningJobError<'a>),
DeclareMiningJobSuccess(DeclareMiningJobSuccess<'a>),
ProvideMissingTransactions(ProvideMissingTransactions<'a>),
ProvideMissingTransactionsSuccess(ProvideMissingTransactionsSuccess<'a>),
PushSolution(PushSolution<'a>),
}Expand description
A parser of messages of Job Declaration subprotocol, to be used for parsing raw messages
Variants§
AllocateMiningJobToken(AllocateMiningJobToken<'a>)
AllocateMiningJobTokenSuccess(AllocateMiningJobTokenSuccess<'a>)
DeclareMiningJob(DeclareMiningJob<'a>)
DeclareMiningJobError(DeclareMiningJobError<'a>)
DeclareMiningJobSuccess(DeclareMiningJobSuccess<'a>)
ProvideMissingTransactions(ProvideMissingTransactions<'a>)
ProvideMissingTransactionsSuccess(ProvideMissingTransactionsSuccess<'a>)
PushSolution(PushSolution<'a>)
Implementations§
Source§impl JobDeclaration<'_>
impl JobDeclaration<'_>
Sourcepub fn into_static(self) -> JobDeclaration<'static>
pub fn into_static(self) -> JobDeclaration<'static>
converter into static lifetime
Trait Implementations§
Source§impl<'a> Clone for JobDeclaration<'a>
impl<'a> Clone for JobDeclaration<'a>
Source§fn clone(&self) -> JobDeclaration<'a>
fn clone(&self) -> JobDeclaration<'a>
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<'a> Debug for JobDeclaration<'a>
impl<'a> Debug for JobDeclaration<'a>
Source§impl<'decoder> Decodable<'decoder> for JobDeclaration<'decoder>
impl<'decoder> Decodable<'decoder> for JobDeclaration<'decoder>
Source§fn get_structure(_v: &[u8]) -> Result<Vec<FieldMarker>, Error>
fn get_structure(_v: &[u8]) -> Result<Vec<FieldMarker>, Error>
Defines the expected structure of a type based on binary data. Read more
Source§fn from_decoded_fields(_v: Vec<DecodableField<'decoder>>) -> Result<Self, Error>
fn from_decoded_fields(_v: Vec<DecodableField<'decoder>>) -> Result<Self, Error>
Constructs the type from a vector of decoded fields. Read more
Source§impl Display for JobDeclaration<'_>
impl Display for JobDeclaration<'_>
Source§impl<'decoder> From<JobDeclaration<'decoder>> for EncodableField<'decoder>
impl<'decoder> From<JobDeclaration<'decoder>> for EncodableField<'decoder>
Source§fn from(m: JobDeclaration<'decoder>) -> Self
fn from(m: JobDeclaration<'decoder>) -> Self
Converts to this type from the input type.
Source§impl GetSize for JobDeclaration<'_>
impl GetSize for JobDeclaration<'_>
Source§impl IsSv2Message for JobDeclaration<'_>
impl IsSv2Message for JobDeclaration<'_>
Source§fn message_type(&self) -> u8
fn message_type(&self) -> u8
get message type
Source§fn channel_bit(&self) -> bool
fn channel_bit(&self) -> bool
get channel bit
Source§fn extension_type(&self) -> u16
fn extension_type(&self) -> u16
get extension type (0 for non-extension messages)
Auto Trait Implementations§
impl<'a> Freeze for JobDeclaration<'a>
impl<'a> RefUnwindSafe for JobDeclaration<'a>
impl<'a> Send for JobDeclaration<'a>
impl<'a> Sync for JobDeclaration<'a>
impl<'a> Unpin for JobDeclaration<'a>
impl<'a> !UnwindSafe for JobDeclaration<'a>
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