[][src]Struct no_proto::error::NP_Error

pub struct NP_Error {
    pub message: String,
}

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]

impl From<ParseFloatError> for NP_Error[src]

impl From<ParseIntError> for NP_Error[src]

Auto Trait Implementations

impl Send for NP_Error

impl Sync for NP_Error

impl Unpin for NP_Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.