pub enum ErrorKind {
Warning,
Error,
Fatal,
}
Expand description
The error type returned by all functions that interact with a
Console
.
Variants§
Warning
Errors that could go away after several trys and are usually not that fatal.
Error
Various errors wich aren’t really common, but can be fatal. (eg. CString::new() failure)
Fatal
The Console
cannot be used anymore and is useless.
If you get this kind of error from the Console::new
function, it is likely
you will not be able to create a Console in the future as well.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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