[][src]Struct errormake::ExampleErrorStruct

pub struct ExampleErrorStruct<T: ?Sized + 'static> { /* fields omitted */ }

An example of an error struct made by errormake

Implementations

impl ExampleErrorStruct<Infallible>[src]

pub fn new() -> ExampleErrorStruct<Infallible>[src]

Instantiate with no source or description

pub fn with_description(description: String) -> ExampleErrorStruct<Infallible>[src]

Instantiate with the given description and no source

impl<T: 'static> ExampleErrorStruct<T>[src]

pub fn with_source(source: T) -> ExampleErrorStruct<T>[src]

Instantiate with the given source and no description

pub fn with_source_and_description(
    source: T,
    description: String
) -> ExampleErrorStruct<T>
[src]

Instantiate with the given source and description

impl<T: ?Sized + 'static> ExampleErrorStruct<T>[src]

pub fn with_optional_data(
    source: Option<Box<T>>,
    description: Option<String>
) -> ExampleErrorStruct<T>
[src]

Instantiate with optional source and description determined by the arguments

impl<T: Error + 'static> ExampleErrorStruct<T>[src]

pub fn into_dynamic(self) -> ExampleErrorStruct<dyn Error + 'static>[src]

Convert the source error into a dynamic Error object, if it exists

Trait Implementations

impl<T: Clone + ?Sized + 'static> Clone for ExampleErrorStruct<T>[src]

impl<T: Debug + ?Sized + 'static> Debug for ExampleErrorStruct<T>[src]

impl<T: Default + ?Sized + 'static> Default for ExampleErrorStruct<T>[src]

impl<T: Display + ?Sized + 'static> Display for ExampleErrorStruct<T>[src]

impl<T: Eq + ?Sized + 'static> Eq for ExampleErrorStruct<T>[src]

impl<T> Error for ExampleErrorStruct<T> where
    T: Error + 'static, 
[src]

impl Error for ExampleErrorStruct<dyn Error + 'static>[src]

impl<T: Hash + ?Sized + 'static> Hash for ExampleErrorStruct<T>[src]

impl<T: PartialEq + ?Sized + 'static> PartialEq<ExampleErrorStruct<T>> for ExampleErrorStruct<T>[src]

impl<T: ?Sized + 'static> StructuralEq for ExampleErrorStruct<T>[src]

impl<T: ?Sized + 'static> StructuralPartialEq for ExampleErrorStruct<T>[src]

Auto Trait Implementations

impl<T: ?Sized> RefUnwindSafe for ExampleErrorStruct<T> where
    T: RefUnwindSafe

impl<T: ?Sized> Send for ExampleErrorStruct<T> where
    T: Send

impl<T: ?Sized> Sync for ExampleErrorStruct<T> where
    T: Sync

impl<T: ?Sized> Unpin for ExampleErrorStruct<T>

impl<T: ?Sized> UnwindSafe for ExampleErrorStruct<T> where
    T: UnwindSafe

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