pub enum WsvcError {
FsError(WsvcFsError),
CodecError(FromUtf8Error),
BadUsage(String),
RepoError(String),
ConfigDeserializeFailed(Error),
ConfigSerializeFailed(Error),
LackOfConfig(String, String),
NeedConfiguring(String),
SerializationError(Error),
NetworkError(Error),
DataError(String),
EmptyRepoError,
}
Expand description
Error type for wsvc
Variants§
FsError(WsvcFsError)
CodecError(FromUtf8Error)
BadUsage(String)
RepoError(String)
ConfigDeserializeFailed(Error)
ConfigSerializeFailed(Error)
LackOfConfig(String, String)
NeedConfiguring(String)
SerializationError(Error)
NetworkError(Error)
DataError(String)
EmptyRepoError
Trait Implementations§
Source§impl Error for WsvcError
impl Error for WsvcError
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<FromUtf8Error> for WsvcError
impl From<FromUtf8Error> for WsvcError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<WsvcError> for WsvcServerError
impl From<WsvcError> for WsvcServerError
Source§impl From<WsvcFsError> for WsvcError
impl From<WsvcFsError> for WsvcError
Source§fn from(source: WsvcFsError) -> Self
fn from(source: WsvcFsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for WsvcError
impl !RefUnwindSafe for WsvcError
impl Send for WsvcError
impl Sync for WsvcError
impl Unpin for WsvcError
impl !UnwindSafe for WsvcError
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