pub enum DaemonError {
Database(DbErr),
Network(Error),
Io(Error),
Json(Error),
Base64(DecodeError),
Utf8(FromUtf8Error),
EventSource(String),
Signer(SignerError),
}Expand description
signer-daemon 特有的错误类型扩展
Variants§
Database(DbErr)
数据库操作错误
Network(Error)
网络请求错误
Io(Error)
IO 操作错误
Json(Error)
JSON 序列化错误
Base64(DecodeError)
Base64 解码错误
Utf8(FromUtf8Error)
UTF8 转换错误
EventSource(String)
事件源客户端错误
Signer(SignerError)
通用 Signer 错误
Trait Implementations§
Source§impl Debug for DaemonError
impl Debug for DaemonError
Source§impl Display for DaemonError
impl Display for DaemonError
Source§impl Error for DaemonError
impl Error for DaemonError
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<DbErr> for DaemonError
impl From<DbErr> for DaemonError
Source§impl From<DecodeError> for DaemonError
impl From<DecodeError> for DaemonError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DaemonError
impl From<Error> for DaemonError
Source§impl From<Error> for DaemonError
impl From<Error> for DaemonError
Source§impl From<Error> for DaemonError
impl From<Error> for DaemonError
Source§impl From<Error> for DaemonError
为 eventsource_client::Error 添加转换实现
impl From<Error> for DaemonError
为 eventsource_client::Error 添加转换实现
Source§impl From<FromUtf8Error> for DaemonError
impl From<FromUtf8Error> for DaemonError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
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 DaemonError
impl !UnwindSafe for DaemonError
impl Freeze for DaemonError
impl Send for DaemonError
impl Sync for DaemonError
impl Unpin for DaemonError
impl UnsafeUnpin for DaemonError
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.