Skip to main content

ErrorSource

Trait ErrorSource 

Source
pub trait ErrorSource {
    // Required method
    fn into_result(self) -> Result<(), Error>;
}
Expand description

Helper to convert nrfxlib_sys numeric errors into idiomatic results.

Required Methods§

Source

fn into_result(self) -> Result<(), Error>

Turns a value of 0 into an Ok(()), whereas any other value gets turned into Error::NrfError.

Implementations on Foreign Types§

Source§

impl ErrorSource for i32

Source§

impl ErrorSource for isize

Implementors§