Trait NgrokError

Source
pub trait NgrokError: 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§

Source

fn error_code(&self) -> Option<&str>

Return the ngrok error code, if one exists for this error.

Source

fn msg(&self) -> String

Return the error message minus the ngrok error code. If this error has no error code, this is equivalent to format!("{error}").

Implementors§