pub enum SignerError {
Msg(String),
Io(Error),
SerdeJson(Error),
Base64(DecodeError),
Crypto(String),
Utf8(FromUtf8Error),
Signature(String),
}Expand description
本 crate 公共错误类型
Variants§
Msg(String)
通用带字符串信息的错误
Io(Error)
IO 错误
SerdeJson(Error)
JSON 序列化 / 反序列化错误
Base64(DecodeError)
Base64 解码错误
Crypto(String)
ChaCha20Poly1305 加解密错误
Utf8(FromUtf8Error)
UTF8 转换错误
Signature(String)
Schnorrkel 签名相关错误
Trait Implementations§
Source§impl Debug for SignerError
impl Debug for SignerError
Source§impl Display for SignerError
impl Display for SignerError
Source§impl Error for SignerError
impl Error for SignerError
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<DecodeError> for SignerError
impl From<DecodeError> for SignerError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for SignerError
impl From<Error> for SignerError
Source§impl From<Error> for SignerError
impl From<Error> for SignerError
Source§impl From<Error> for SignerError
impl From<Error> for SignerError
Source§impl From<FromUtf8Error> for SignerError
impl From<FromUtf8Error> for SignerError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<SignatureError> for SignerError
impl From<SignatureError> for SignerError
Source§fn from(err: SignatureError) -> Self
fn from(err: SignatureError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SignerError
impl !RefUnwindSafe for SignerError
impl Send for SignerError
impl Sync for SignerError
impl Unpin for SignerError
impl !UnwindSafe for SignerError
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