pub enum RpcError {
Show 41 variants
NotImplemented,
IntConversionError(TryFromIntError),
HexParsingError(Error),
RpcBlueWorkTypeParseError(ParseIntError),
ParseIntError(ParseIntError),
ParseIpAddressError(AddrParseError),
RpcApiVersionFormatError,
InvalidRpcScriptClass(String),
MissingRpcFieldError(String, String),
UnsupportedFeature,
PrimitiveToEnumConversionError,
CoinbasePayloadLengthAboveMax(usize),
RejectedTransaction(RpcTransactionId, String),
InvalidBlock(RpcHash),
InvalidGetBlocksRequest,
TransactionNotFound(TransactionId),
NoUtxoIndex,
NoConnectionManager,
WindowSizeExceedingMaximum(u32, u32),
WindowSizeExceedingPruningDepth(u32, u64),
UnavailableInSafeMode,
IpHasPermanentConnection(IpAddress),
IpIsNotBanned(IpAddress),
MergerNotFound(RpcHash),
SubmitBlockError(SubmitBlockRejectReason),
AddressError(AddressError),
NetworkTypeError(NetworkTypeError),
NetworkIdError(NetworkIdError),
NotificationError(Error),
MiningManagerError(MiningManagerError),
ConsensusError(ConsensusError),
ScriptClassError(Error),
NodeIdError(Error),
RpcSubsystem(String),
General(String),
RpcCtlDispatchError,
InconsistentMempoolTxQuery,
SubnetParsingError(SubnetworkConversionError),
WasmError(Error),
SerdeWasmBindgen(String),
ConsensusClient(Error),
}Variants§
NotImplemented
IntConversionError(TryFromIntError)
HexParsingError(Error)
RpcBlueWorkTypeParseError(ParseIntError)
ParseIntError(ParseIntError)
ParseIpAddressError(AddrParseError)
RpcApiVersionFormatError
InvalidRpcScriptClass(String)
MissingRpcFieldError(String, String)
UnsupportedFeature
PrimitiveToEnumConversionError
CoinbasePayloadLengthAboveMax(usize)
RejectedTransaction(RpcTransactionId, String)
InvalidBlock(RpcHash)
InvalidGetBlocksRequest
TransactionNotFound(TransactionId)
NoUtxoIndex
NoConnectionManager
WindowSizeExceedingMaximum(u32, u32)
WindowSizeExceedingPruningDepth(u32, u64)
IpHasPermanentConnection(IpAddress)
IpIsNotBanned(IpAddress)
MergerNotFound(RpcHash)
SubmitBlockError(SubmitBlockRejectReason)
AddressError(AddressError)
NetworkTypeError(NetworkTypeError)
NetworkIdError(NetworkIdError)
NotificationError(Error)
MiningManagerError(MiningManagerError)
ConsensusError(ConsensusError)
ScriptClassError(Error)
NodeIdError(Error)
RpcSubsystem(String)
General(String)
RpcCtlDispatchError
InconsistentMempoolTxQuery
SubnetParsingError(SubnetworkConversionError)
WasmError(Error)
SerdeWasmBindgen(String)
ConsensusClient(Error)
Trait Implementations§
Source§impl Error for RpcError
impl Error for RpcError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AddrParseError> for RpcError
impl From<AddrParseError> for RpcError
Source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<AddressError> for RpcError
impl From<AddressError> for RpcError
Source§fn from(source: AddressError) -> Self
fn from(source: AddressError) -> Self
Converts to this type from the input type.
Source§impl From<ChannelError<RpcState>> for RpcError
impl From<ChannelError<RpcState>> for RpcError
Source§fn from(_: ChannelError<RpcState>) -> Self
fn from(_: ChannelError<RpcState>) -> Self
Converts to this type from the input type.
Source§impl From<ConsensusError> for RpcError
impl From<ConsensusError> for RpcError
Source§fn from(source: ConsensusError) -> Self
fn from(source: ConsensusError) -> Self
Converts to this type from the input type.
Source§impl From<MiningManagerError> for RpcError
impl From<MiningManagerError> for RpcError
Source§fn from(source: MiningManagerError) -> Self
fn from(source: MiningManagerError) -> Self
Converts to this type from the input type.
Source§impl From<NetworkIdError> for RpcError
impl From<NetworkIdError> for RpcError
Source§fn from(source: NetworkIdError) -> Self
fn from(source: NetworkIdError) -> Self
Converts to this type from the input type.
Source§impl From<NetworkTypeError> for RpcError
impl From<NetworkTypeError> for RpcError
Source§fn from(source: NetworkTypeError) -> Self
fn from(source: NetworkTypeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for RpcError
impl From<ParseIntError> for RpcError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<SubnetworkConversionError> for RpcError
impl From<SubnetworkConversionError> for RpcError
Source§fn from(source: SubnetworkConversionError) -> Self
fn from(source: SubnetworkConversionError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for RpcError
impl From<TryFromIntError> for RpcError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcError
impl RefUnwindSafe for RpcError
impl Send for RpcError
impl Sync for RpcError
impl Unpin for RpcError
impl UnwindSafe for RpcError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
Source§impl<T> CastFrom for Twhere
T: Any + 'static,
impl<T> CastFrom for Twhere
T: Any + 'static,
Source§fn ref_any(&self) -> &(dyn Any + 'static)
fn ref_any(&self) -> &(dyn Any + 'static)
Returns a immutable reference to
Any, which is backed by the type implementing this trait.Source§fn mut_any(&mut self) -> &mut (dyn Any + 'static)
fn mut_any(&mut self) -> &mut (dyn Any + 'static)
Returns a mutable reference to
Any, which is backed by the type implementing this trait.Source§impl<T> CastFromSync for T
impl<T> CastFromSync for T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more