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<DaemonError> for SignerError
为 SignerError 添加从 DaemonError 的转换
impl From<DaemonError> for SignerError
为 SignerError 添加从 DaemonError 的转换
Source§fn from(err: DaemonError) -> Self
fn from(err: DaemonError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for SignerError
impl From<DecodeError> for SignerError
Source§fn from(source: DecodeError) -> SignerError
fn from(source: DecodeError) -> SignerError
Converts to this type from the input type.
Source§impl From<Error> for SignerError
impl From<Error> for SignerError
Source§fn from(source: Error) -> SignerError
fn from(source: Error) -> SignerError
Converts to this type from the input type.
Source§impl From<Error> for SignerError
impl From<Error> for SignerError
Source§fn from(source: Error) -> SignerError
fn from(source: Error) -> SignerError
Converts to this type from the input type.
Source§impl From<Error> for SignerError
impl From<Error> for SignerError
Source§fn from(err: Error) -> SignerError
fn from(err: Error) -> SignerError
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for SignerError
impl From<FromUtf8Error> for SignerError
Source§fn from(source: FromUtf8Error) -> SignerError
fn from(source: FromUtf8Error) -> SignerError
Converts to this type from the input type.
Source§impl From<SignatureError> for SignerError
impl From<SignatureError> for SignerError
Source§fn from(err: SignatureError) -> SignerError
fn from(err: SignatureError) -> SignerError
Converts to this type from the input type.
Source§impl From<SignerError> for DaemonError
impl From<SignerError> for DaemonError
Source§fn from(source: SignerError) -> Self
fn from(source: SignerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SignerError
impl !UnwindSafe for SignerError
impl Freeze for SignerError
impl Send for SignerError
impl Sync for SignerError
impl Unpin for SignerError
impl UnsafeUnpin 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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.