Struct kern::Fail [−][src]
pub struct Fail(_);
Fail structure
use kern::Fail; fn do_something() -> Result<(), Fail> { let err = Fail::new("This is an error"); Fail::from(err) } println!("{}", do_something().unwrap_err());
Implementations
Trait Implementations
impl PartialOrd<Fail> for Fail
[src]
impl PartialOrd<Fail> for Fail
[src]impl StructuralEq for Fail
[src]
impl StructuralEq for Fail
[src]impl StructuralPartialEq for Fail
[src]
impl StructuralPartialEq for Fail
[src]Auto Trait Implementations
impl RefUnwindSafe for Fail
impl RefUnwindSafe for Fail
impl UnwindSafe for Fail
impl UnwindSafe for Fail