[−][src]Struct no_proto::error::NP_Error
The error type used for errors in this library
Fields
message: String
The message of this error
Implementations
impl NP_Error
[src]
pub fn new<S: AsRef<str>>(message: S) -> Self
[src]
Generate a new error with a specific message
pub fn unwrap<T>(value: Option<T>) -> Result<T, NP_Error>
[src]
Convert an option to an error type
Trait Implementations
impl Debug for NP_Error
[src]
impl From<FromUtf8Error> for NP_Error
[src]
fn from(err: FromUtf8Error) -> NP_Error
[src]
impl From<ParseFloatError> for NP_Error
[src]
fn from(err: ParseFloatError) -> NP_Error
[src]
impl From<ParseIntError> for NP_Error
[src]
fn from(err: ParseIntError) -> NP_Error
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,