pub trait Error: Error {
// Provided methods
fn error_code(&self) -> Option<&str> { ... }
fn msg(&self) -> String { ... }
}
Expand description
An error that may have an ngrok error code. All ngrok error codes are documented at https://ngrok.com/docs/errors
Provided Methods§
sourcefn error_code(&self) -> Option<&str>
fn error_code(&self) -> Option<&str>
Return the ngrok error code, if one exists for this error.