[][src]Struct melib::error::MeliError

pub struct MeliError {
    pub summary: Option<Cow<'static, str>>,
    pub details: Cow<'static, str>,
    pub source: Option<Arc<dyn Error + Send + Sync + 'static>>,
    pub kind: ErrorKind,
}

Fields

summary: Option<Cow<'static, str>>details: Cow<'static, str>source: Option<Arc<dyn Error + Send + Sync + 'static>>kind: ErrorKind

Implementations

impl MeliError[src]

pub fn new<M>(msg: M) -> MeliError where
    M: Into<Cow<'static, str>>, 
[src]

pub fn set_summary<M>(self, summary: M) -> MeliError where
    M: Into<Cow<'static, str>>, 
[src]

pub fn set_source(
    self,
    new_val: Option<Arc<dyn Error + Send + Sync + 'static>>
) -> MeliError
[src]

pub fn set_kind(self, new_val: ErrorKind) -> MeliError[src]

Trait Implementations

impl Clone for MeliError[src]

impl Debug for MeliError[src]

impl Display for MeliError[src]

impl Error for MeliError[src]

impl<'_> From<&'_ str> for MeliError[src]

impl<'a> From<&'a MeliError> for MeliError[src]

impl<'a> From<&'a mut MeliError> for MeliError[src]

impl From<Box<ErrorKind>> for MeliError[src]

impl From<Box<dyn Error + 'static + Sync + Send>> for MeliError[src]

impl<'a> From<Cow<'a, str>> for MeliError[src]

impl<'_> From<Err<(&'_ [u8], ErrorKind)>> for MeliError[src]

impl<'_> From<Err<(&'_ str, ErrorKind)>> for MeliError[src]

impl<'i> From<Err<ParsingError<&'i [u8]>>> for MeliError[src]

impl<'i> From<Err<ParsingError<&'i str>>> for MeliError[src]

impl From<Error> for MeliError[src]

impl From<Error> for MeliError[src]

impl From<Error> for MeliError[src]

impl From<Error> for MeliError[src]

impl From<Error> for MeliError[src]

impl From<Error> for MeliError[src]

impl From<Error> for MeliError[src]

impl From<FromUtf8Error> for MeliError[src]

impl<T: Sync + Send + 'static + Debug> From<HandshakeError<T>> for MeliError[src]

impl From<MeliError> for BackendEvent[src]

impl From<NulError> for MeliError[src]

impl From<ParseIntError> for MeliError[src]

impl<'i> From<ParsingError<&'i [u8]>> for MeliError[src]

impl<'i> From<ParsingError<&'i str>> for MeliError[src]

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

impl From<String> for MeliError[src]

impl From<Utf8Error> for MeliError[src]

Auto Trait Implementations

impl !RefUnwindSafe for MeliError

impl Send for MeliError

impl Sync for MeliError

impl Unpin for MeliError

impl !UnwindSafe for MeliError

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> Instrument for T[src]

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

impl<I> IntoMeliError for I where
    I: Into<MeliError>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]