pub trait NngError {
// Required methods
fn is_cancelled(&self) -> bool;
fn is_timed_out(&self) -> bool;
fn is_conn_aborted(&self) -> bool;
fn is_conn_reset(&self) -> bool;
fn is_conn_refused(&self) -> bool;
fn is_peer_auth(&self) -> bool;
fn is_crypto(&self) -> bool;
}Expand description
Extension to error code with shortcut for some meaningful checks
Required Methods§
Sourcefn is_cancelled(&self) -> bool
fn is_cancelled(&self) -> bool
Returns whether error code indicates cancellation of future.
Sourcefn is_timed_out(&self) -> bool
fn is_timed_out(&self) -> bool
Returns whether error code indicates operation timed out.
Sourcefn is_conn_aborted(&self) -> bool
fn is_conn_aborted(&self) -> bool
Returns whether error code indicates aborted connection.
Sourcefn is_conn_reset(&self) -> bool
fn is_conn_reset(&self) -> bool
Returns whether error code indicates connection has been reset.
Sourcefn is_conn_refused(&self) -> bool
fn is_conn_refused(&self) -> bool
Returns whether error code indicates connection has been refused.
Sourcefn is_peer_auth(&self) -> bool
fn is_peer_auth(&self) -> bool
Returns whether error code indicates problem with peer’s authentication