Trait ngrok::prelude::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<'a, E> Error for &'a 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§