pub struct MainError(/* private fields */);
Expand description
Crate’s main function returned type. It implements Termination to properly format console error.
To have your own termination custom logic, you can re-implement an equivalent of MainError. Have a look at source it is straightforward.
Trait Implementations§
Source§impl From<DomainError> for MainError
impl From<DomainError> for MainError
Source§fn from(value: DomainError) -> Self
fn from(value: DomainError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for MainError
impl !RefUnwindSafe for MainError
impl Send for MainError
impl Sync for MainError
impl Unpin for MainError
impl !UnwindSafe for MainError
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