pub enum ErrorKind {
Client(ClientErrorKind),
Server(ServerErrorKind),
}
Expand description
An error can either come from the client or the server.
Variants§
Client(ClientErrorKind)
Server(ServerErrorKind)
Trait Implementations§
source§impl From<ClientErrorKind> for ErrorKind
impl From<ClientErrorKind> for ErrorKind
source§fn from(k: ClientErrorKind) -> Self
fn from(k: ClientErrorKind) -> Self
Converts to this type from the input type.
source§impl From<ServerErrorKind> for ErrorKind
impl From<ServerErrorKind> for ErrorKind
source§fn from(k: ServerErrorKind) -> Self
fn from(k: ServerErrorKind) -> Self
Converts to this type from the input type.