pub enum Error<E> {
CallerAlreadyExists(String),
CallerNotFound(String),
CommandFailed(Box<Text>),
Empty,
FailedParsing(Box<Text>),
LayoutDisallowsFile(PhantomData<E>),
NoFileYet,
NoFileForRelated,
NoWidgetYet,
WidgetIsNot,
}Expand description
Error for failures in Duat
Variants§
CallerAlreadyExists(String)
The caller for a command already pertains to another
CallerNotFound(String)
No commands have the given caller as one of their own
CommandFailed(Box<Text>)
The command failed internally
Empty
There was no caller and no arguments
FailedParsing(Box<Text>)
Arguments could not be parsed correctly
LayoutDisallowsFile(PhantomData<E>)
The Layout does not allow for another file to open
NoFileYet
The Ui still hasn’t created the first file
NoFileForRelated
Since the Ui has no file, widgets can’t relate to it
NoWidgetYet
The Ui still hasn’t created the first widget (a file)
WidgetIsNot
The checked widget is not of the type given
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Error<E>
impl<E> !RefUnwindSafe for Error<E>
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> !UnwindSafe for Error<E>
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