pub struct PrettyDisplay<'a, D = ()> { /* private fields */ }Expand description
Pretty display for AppError
Implementations§
Source§impl<'a, D> PrettyDisplay<'a, D>
impl<'a, D> PrettyDisplay<'a, D>
Sourcepub fn with_ignore_err(self, ignore_err: fn(&D) -> bool) -> Self
pub fn with_ignore_err(self, ignore_err: fn(&D) -> bool) -> Self
Adds a callback that chooses whether to ignore an error
Trait Implementations§
Source§impl<D> Debug for PrettyDisplay<'_, D>where
D: Debug + 'static,
impl<D> Debug for PrettyDisplay<'_, D>where
D: Debug + 'static,
Auto Trait Implementations§
impl<'a, D> Freeze for PrettyDisplay<'a, D>
impl<'a, D> RefUnwindSafe for PrettyDisplay<'a, D>where
D: RefUnwindSafe,
impl<'a, D> Send for PrettyDisplay<'a, D>
impl<'a, D> Sync for PrettyDisplay<'a, D>
impl<'a, D> Unpin for PrettyDisplay<'a, D>
impl<'a, D> UnwindSafe for PrettyDisplay<'a, D>where
D: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more