[−][src]Struct errormake::ExampleErrorStruct
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]
source: T,
description: String
) -> ExampleErrorStruct<T>
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]
source: Option<Box<T>>,
description: Option<String>
) -> ExampleErrorStruct<T>
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]
fn clone(&self) -> ExampleErrorStruct<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug + ?Sized + 'static> Debug for ExampleErrorStruct<T>
[src]
impl<T: Default + ?Sized + 'static> Default for ExampleErrorStruct<T>
[src]
fn default() -> 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]
T: Error + 'static,
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl Error for ExampleErrorStruct<dyn Error + 'static>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<T: Hash + ?Sized + 'static> Hash for ExampleErrorStruct<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: PartialEq + ?Sized + 'static> PartialEq<ExampleErrorStruct<T>> for ExampleErrorStruct<T>
[src]
fn eq(&self, other: &ExampleErrorStruct<T>) -> bool
[src]
fn ne(&self, other: &ExampleErrorStruct<T>) -> bool
[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,
T: RefUnwindSafe,
impl<T: ?Sized> Send for ExampleErrorStruct<T> where
T: Send,
T: Send,
impl<T: ?Sized> Sync for ExampleErrorStruct<T> where
T: Sync,
T: Sync,
impl<T: ?Sized> Unpin for ExampleErrorStruct<T>
impl<T: ?Sized> UnwindSafe for ExampleErrorStruct<T> where
T: UnwindSafe,
T: UnwindSafe,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,