Struct rustr::error::RError [] [src]

pub struct RError {
    // some fields omitted
}

Methods

impl RError

fn kind_info(&self) -> &str

impl RError

fn new(kind_: REKind) -> RError

Creates a new RError from a known kind of error as well as an arbitrary error payload.

Examples

use rustr::error::{RError, REKind};

fn unknown(x: String) -> RError

fn forcestop(x: String) -> RError

fn unreachable(x: String) -> RError

fn other<E>(x: E) -> RError where E: Into<Box<Error + Send + Sync>>

fn kind(&self) -> &REKind

Trait Implementations

impl Display for RError

fn fmt(&self, fmt: &mut Formatter) -> Result

impl Error for RError

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

impl From<NulError> for RError

fn from(x: NulError) -> Self

impl From<IntoStringError> for RError

fn from(x: IntoStringError) -> RError

impl From<ParseError> for RError

fn from(x: ParseError) -> RError

Derived Implementations

impl Debug for RError

fn fmt(&self, __arg_0: &mut Formatter) -> Result