pub enum RPayError {
Show 24 variants
ReadError(Error),
JsonParseError(Error),
FromUtf8Error(FromUtf8Error),
ReqwestError(Error),
ParseIntError(ParseIntError),
Error(String, String),
ErrorWithMsg(String),
DecodeError(DecodeError),
InvalidHeaderValue(InvalidHeaderValue),
X509Error(Err<PEMError>),
PEMError(Err<X509Error>),
WechatV3PayConfigBuilderError(WechatV3PayConfigBuilderError),
JsApiPayBuilderError(JsApiPayBuilderError),
H5PayBuilderError(H5PayBuilderError),
AppPayBuilderError(AppPayBuilderError),
NativePayBuilderError(NativePayBuilderError),
PayerBuilderError(PayerBuilderError),
H5ReqSceneInfoBuilderError(H5ReqSceneInfoBuilderError),
H5InfoBuilderError(H5InfoBuilderError),
AmountBuilderError(AmountBuilderError),
PayInfoBuilderError(PayInfoBuilderError),
ParseEncryptBuilderError(ParseEncryptBuilderError),
AccessTokenBuilderError(AccessTokenBuilderError),
RequestBuilderError(RequestBuilderError),
}Variants§
ReadError(Error)
io异常
JsonParseError(Error)
FromUtf8Error(FromUtf8Error)
ReqwestError(Error)
ParseIntError(ParseIntError)
Error(String, String)
ErrorWithMsg(String)
DecodeError(DecodeError)
InvalidHeaderValue(InvalidHeaderValue)
X509Error(Err<PEMError>)
PEMError(Err<X509Error>)
WechatV3PayConfigBuilderError(WechatV3PayConfigBuilderError)
JsApiPayBuilderError(JsApiPayBuilderError)
H5PayBuilderError(H5PayBuilderError)
AppPayBuilderError(AppPayBuilderError)
NativePayBuilderError(NativePayBuilderError)
PayerBuilderError(PayerBuilderError)
H5ReqSceneInfoBuilderError(H5ReqSceneInfoBuilderError)
H5InfoBuilderError(H5InfoBuilderError)
AmountBuilderError(AmountBuilderError)
PayInfoBuilderError(PayInfoBuilderError)
ParseEncryptBuilderError(ParseEncryptBuilderError)
AccessTokenBuilderError(AccessTokenBuilderError)
RequestBuilderError(RequestBuilderError)
Trait Implementations§
Source§impl Error for RPayError
impl Error for RPayError
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 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AccessTokenBuilderError> for RPayError
impl From<AccessTokenBuilderError> for RPayError
Source§fn from(source: AccessTokenBuilderError) -> Self
fn from(source: AccessTokenBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<AmountBuilderError> for RPayError
impl From<AmountBuilderError> for RPayError
Source§fn from(source: AmountBuilderError) -> Self
fn from(source: AmountBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<AppPayBuilderError> for RPayError
impl From<AppPayBuilderError> for RPayError
Source§fn from(source: AppPayBuilderError) -> Self
fn from(source: AppPayBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for RPayError
impl From<DecodeError> for RPayError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for RPayError
impl From<FromUtf8Error> for RPayError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<H5InfoBuilderError> for RPayError
impl From<H5InfoBuilderError> for RPayError
Source§fn from(source: H5InfoBuilderError) -> Self
fn from(source: H5InfoBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<H5PayBuilderError> for RPayError
impl From<H5PayBuilderError> for RPayError
Source§fn from(source: H5PayBuilderError) -> Self
fn from(source: H5PayBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<H5ReqSceneInfoBuilderError> for RPayError
impl From<H5ReqSceneInfoBuilderError> for RPayError
Source§fn from(source: H5ReqSceneInfoBuilderError) -> Self
fn from(source: H5ReqSceneInfoBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for RPayError
impl From<InvalidHeaderValue> for RPayError
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<JsApiPayBuilderError> for RPayError
impl From<JsApiPayBuilderError> for RPayError
Source§fn from(source: JsApiPayBuilderError) -> Self
fn from(source: JsApiPayBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<NativePayBuilderError> for RPayError
impl From<NativePayBuilderError> for RPayError
Source§fn from(source: NativePayBuilderError) -> Self
fn from(source: NativePayBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<ParseEncryptBuilderError> for RPayError
impl From<ParseEncryptBuilderError> for RPayError
Source§fn from(source: ParseEncryptBuilderError) -> Self
fn from(source: ParseEncryptBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for RPayError
impl From<ParseIntError> for RPayError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<PayInfoBuilderError> for RPayError
impl From<PayInfoBuilderError> for RPayError
Source§fn from(source: PayInfoBuilderError) -> Self
fn from(source: PayInfoBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<PayerBuilderError> for RPayError
impl From<PayerBuilderError> for RPayError
Source§fn from(source: PayerBuilderError) -> Self
fn from(source: PayerBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<WechatV3PayConfigBuilderError> for RPayError
impl From<WechatV3PayConfigBuilderError> for RPayError
Source§fn from(source: WechatV3PayConfigBuilderError) -> Self
fn from(source: WechatV3PayConfigBuilderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RPayError
impl !RefUnwindSafe for RPayError
impl Send for RPayError
impl Sync for RPayError
impl Unpin for RPayError
impl !UnwindSafe for RPayError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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