Enum roles_logic_sv2::errors::Error
source · pub enum Error {
Show 47 variants
BadPayloadSize,
ExpectedLen32(usize),
BinarySv2Error(Error),
DownstreamDown,
NoGroupsFound,
UnexpectedMessage(u8),
NoGroupIdOnExtendedChannel,
NoPairableUpstream((u16, u16, u32)),
NoCompatibleUpstream(CommonDownstreamData),
NoFutureJobs,
NoDownstreamsConnected,
PrevHashRequireNonExistentJobId(u32),
RequestIdNotMapped(u32),
NoUpstreamsConnected,
UnimplementedProtocol,
UnexpectedPoolMessage,
UnknownRequestId(u32),
NoMoreExtranonces,
JobIsNotFutureButPrevHashNotPresent,
ChannelIsNeitherExtendedNeitherInAPool,
ExtranonceSpaceEnded,
ImpossibleToCalculateMerkleRoot,
GroupIdNotFound,
ShareDoNotMatchAnyJob,
ShareDoNotMatchAnyChannel,
InvalidCoinbase,
ValueRemainingNotUpdated,
UnknownOutputScriptType,
InvalidOutputScript,
EmptyCoinbaseOutputs,
VersionTooBig,
TxVersionTooBig,
TxVersionTooLow,
TxDecodingError(String),
NotFoundChannelId,
NoValidJob,
NoValidTranslatorJob,
NoTemplateForId,
NoValidTemplate(String),
InvalidExtranonceSize(u16, u16),
PoisonLock(String),
InvalidBip34Bytes(Vec<u8>),
JobNotUpdated(u32, u32),
TargetError(InputError),
HashrateError(InputError),
LogicErrorMessage(Box<PoolMessages<'static>>),
JDSMissingTransactions,
}
Expand description
No NoPairableUpstreamT(min_v, max_v, all falgs supported))
Variants§
BadPayloadSize
Errors if payload size is too big to fit into a frame.
ExpectedLen32(usize)
BinarySv2Error(Error)
DownstreamDown
NoGroupsFound
UnexpectedMessage(u8)
NoGroupIdOnExtendedChannel
NoPairableUpstream((u16, u16, u32))
(min_v
, max_v
, all flags supported)
NoCompatibleUpstream(CommonDownstreamData)
NoFutureJobs
Error if the hashmap future_jobs
field in the GroupChannelJobDispatcher
is empty.
NoDownstreamsConnected
PrevHashRequireNonExistentJobId(u32)
RequestIdNotMapped(u32)
NoUpstreamsConnected
UnimplementedProtocol
UnexpectedPoolMessage
UnknownRequestId(u32)
NoMoreExtranonces
JobIsNotFutureButPrevHashNotPresent
ChannelIsNeitherExtendedNeitherInAPool
ExtranonceSpaceEnded
ImpossibleToCalculateMerkleRoot
GroupIdNotFound
InvalidCoinbase
ValueRemainingNotUpdated
UnknownOutputScriptType
InvalidOutputScript
EmptyCoinbaseOutputs
VersionTooBig
TxVersionTooBig
TxVersionTooLow
TxDecodingError(String)
NotFoundChannelId
NoValidJob
NoValidTranslatorJob
NoTemplateForId
NoValidTemplate(String)
InvalidExtranonceSize(u16, u16)
PoisonLock(String)
InvalidBip34Bytes(Vec<u8>)
JobNotUpdated(u32, u32)
TargetError(InputError)
HashrateError(InputError)
LogicErrorMessage(Box<PoolMessages<'static>>)
JDSMissingTransactions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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