Enum roles_logic_sv2::parsers::JobDeclaration
source · pub enum JobDeclaration<'a> {
AllocateMiningJobToken(AllocateMiningJobToken<'a>),
AllocateMiningJobTokenSuccess(AllocateMiningJobTokenSuccess<'a>),
DeclareMiningJob(DeclareMiningJob<'a>),
DeclareMiningJobError(DeclareMiningJobError<'a>),
DeclareMiningJobSuccess(DeclareMiningJobSuccess<'a>),
IdentifyTransactions(IdentifyTransactions),
IdentifyTransactionsSuccess(IdentifyTransactionsSuccess<'a>),
ProvideMissingTransactions(ProvideMissingTransactions<'a>),
ProvideMissingTransactionsSuccess(ProvideMissingTransactionsSuccess<'a>),
SubmitSolution(SubmitSolutionJd<'a>),
}
Variants§
AllocateMiningJobToken(AllocateMiningJobToken<'a>)
AllocateMiningJobTokenSuccess(AllocateMiningJobTokenSuccess<'a>)
DeclareMiningJob(DeclareMiningJob<'a>)
DeclareMiningJobError(DeclareMiningJobError<'a>)
DeclareMiningJobSuccess(DeclareMiningJobSuccess<'a>)
IdentifyTransactions(IdentifyTransactions)
IdentifyTransactionsSuccess(IdentifyTransactionsSuccess<'a>)
ProvideMissingTransactions(ProvideMissingTransactions<'a>)
ProvideMissingTransactionsSuccess(ProvideMissingTransactionsSuccess<'a>)
SubmitSolution(SubmitSolutionJd<'a>)
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 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<'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>
fn get_structure(_v: &[u8]) -> Result<Vec<FieldMarker>, Error>
fn from_decoded_fields(_v: Vec<DecodableField<'decoder>>) -> Result<Self, Error>
fn from_bytes(data: &'a mut [u8]) -> Result<Self, Error>
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<'a> IsSv2Message for JobDeclaration<'a>
impl<'a> IsSv2Message for JobDeclaration<'a>
fn message_type(&self) -> u8
fn channel_bit(&self) -> bool
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