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§
Sourcefn into_result(self) -> Result<(), Error>
fn into_result(self) -> Result<(), Error>
Turns a value of 0 into an Ok(()), whereas any other value gets turned into
Error::NrfError.