tokio_xmpp: missing std::error::Error impls
This commit is contained in:
parent
281f1bd195
commit
4920ae83fd
1 changed files with 9 additions and 1 deletions
|
@ -61,6 +61,8 @@ impl fmt::Display for Error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl StdError for Error {}
|
||||||
|
|
||||||
impl From<IoError> for Error {
|
impl From<IoError> for Error {
|
||||||
fn from(e: IoError) -> Self {
|
fn from(e: IoError) -> Self {
|
||||||
Error::Io(e)
|
Error::Io(e)
|
||||||
|
@ -128,6 +130,8 @@ impl fmt::Display for ParserError {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl StdError for ParserError {}
|
||||||
|
|
||||||
impl From<IoError> for ParserError {
|
impl From<IoError> for ParserError {
|
||||||
fn from(e: IoError) -> Self {
|
fn from(e: IoError) -> Self {
|
||||||
ParserError::Io(e)
|
ParserError::Io(e)
|
||||||
|
@ -199,6 +203,8 @@ impl fmt::Display for ProtocolError {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl StdError for ProtocolError {}
|
||||||
|
|
||||||
impl From<ParserError> for ProtocolError {
|
impl From<ParserError> for ProtocolError {
|
||||||
fn from(e: ParserError) -> Self {
|
fn from(e: ParserError) -> Self {
|
||||||
ProtocolError::Parser(e)
|
ProtocolError::Parser(e)
|
||||||
|
@ -224,6 +230,8 @@ pub enum AuthError {
|
||||||
ComponentFail,
|
ComponentFail,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl StdError for AuthError {}
|
||||||
|
|
||||||
impl fmt::Display for AuthError {
|
impl fmt::Display for AuthError {
|
||||||
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
||||||
match self {
|
match self {
|
||||||
|
@ -246,7 +254,7 @@ pub enum ConnecterError {
|
||||||
Resolve(ResolveError),
|
Resolve(ResolveError),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl std::error::Error for ConnecterError {}
|
impl StdError for ConnecterError {}
|
||||||
|
|
||||||
impl std::fmt::Display for ConnecterError {
|
impl std::fmt::Display for ConnecterError {
|
||||||
fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
|
fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
|
||||||
|
|
Loading…
Reference in a new issue