pub enum Error<E> {
AliasNotSingleWord(String),
CallerAlreadyExists(String),
CallerNotFound(String),
CommandFailed(Text),
Empty,
NoFileYet,
NoFileForRelated,
NoWidgetYet,
WidgetIsNot,
LayoutDisallowsFile(PhantomData<E>),
}Expand description
Error for failures in Duat
Variants§
AliasNotSingleWord(String)
An alias wasn’t just a single word
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(Text)
The command failed internally
Empty
There was no caller and no arguments
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
LayoutDisallowsFile(PhantomData<E>)
The Layout does not allow for another file to open
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)