Struct symbolic_debuginfo::sourcebundle::SourceBundleError[][src]

pub struct SourceBundleError { /* fields omitted */ }

An error returned when handling SourceBundle.

Implementations

impl SourceBundleError[src]

pub fn new<E>(kind: SourceBundleErrorKind, source: E) -> Self where
    E: Into<Box<dyn Error + Send + Sync>>, 
[src]

Creates a new SourceBundle error from a known kind of error as well as an arbitrary error payload.

This function is used to generically create source bundle errors which do not originate from symbolic itself. The source argument is an arbitrary payload which will be contained in this SourceBundleError.

pub fn kind(&self) -> SourceBundleErrorKind[src]

Returns the corresponding SourceBundleErrorKind for this error.

Trait Implementations

impl Debug for SourceBundleError[src]

impl Display for SourceBundleError[src]

impl Error for SourceBundleError[src]

impl From<SourceBundleErrorKind> for SourceBundleError[src]

Auto Trait Implementations

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> 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.