Trait Location

Source
pub trait Location:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn fmt_error(&self, f: &mut Formatter<'_>, error: &dyn Fail) -> Result;
}
Expand description

Location that an Error can occur Location that an Error can occur

Required Methods§

Source

fn fmt_error(&self, f: &mut Formatter<'_>, error: &dyn Fail) -> Result

Format the location and error for display

Implementations on Foreign Types§

Source§

impl Location for SocketAddr

Source§

fn fmt_error(&self, f: &mut Formatter<'_>, error: &dyn Fail) -> Result

Source§

impl Location for String

Source§

fn fmt_error(&self, f: &mut Formatter<'_>, error: &dyn Fail) -> Result

Source§

impl Location for PathBuf

Source§

fn fmt_error(&self, f: &mut Formatter<'_>, error: &dyn Fail) -> Result

Implementors§