Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/client/legacy/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1516,6 +1516,10 @@ impl StdError for Error {
}

impl Error {
pub fn is_connect(&self) -> bool {
matches!(self.kind, ErrorKind::Connect)
}

fn is_canceled(&self) -> bool {
matches!(self.kind, ErrorKind::Canceled)
}
Expand Down