ngrok

Trait Error

Source
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§

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}").

Implementations on Foreign Types§

Source§

impl<E> Error for &E
where E: Error,

Source§

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

Source§

fn msg(&self) -> String

Source§

impl<E> Error for Box<E>
where E: Error,

Source§

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

Source§

fn msg(&self) -> String

Source§

impl<E> Error for Arc<E>
where E: Error,

Source§

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

Source§

fn msg(&self) -> String

Implementors§