pub enum NCurseswError {
Show 18 variants
LibraryError {
func: String,
rc: Option<i32>,
},
InterruptedCall,
KeyResize,
KeyEvent,
ColorParseError {
color: String,
},
ColorLimit,
ColorPairLimit,
InvalidCapability,
WideCharTryFromError {
inner: u32,
},
IntError {
source: TryFromIntError,
},
CharError {
source: CharTryFromError,
},
NulError {
source: NulError,
},
Infallible {
source: Infallible,
},
PanelsError {
source: NCurseswPanelsError,
},
MouseError {
source: NCurseswMouseError,
},
MenuError {
source: NCurseswMenuError,
},
FormError {
source: NCurseswFormError,
},
OSError {
func: String,
errno: Errno,
},
}Expand description
NCursesw Errors/Events.
Variants§
LibraryError
InterruptedCall
KeyResize
KeyEvent
👎Deprecated since 0.6.3: this was deprecated as of NCurses API v6.3.20211021
ColorParseError
ColorLimit
ColorPairLimit
InvalidCapability
WideCharTryFromError
IntError
Fields
§
source: TryFromIntErrorCharError
Fields
§
source: CharTryFromErrorNulError
Infallible
Fields
§
source: InfalliblePanelsError
Fields
§
source: NCurseswPanelsErrorMouseError
Fields
§
source: NCurseswMouseErrorMenuError
Fields
§
source: NCurseswMenuErrorFormError
Fields
§
source: NCurseswFormErrorOSError
Trait Implementations§
Source§impl Debug for NCurseswError
impl Debug for NCurseswError
Source§impl Display for NCurseswError
impl Display for NCurseswError
Source§impl Error for NCurseswError
impl Error for NCurseswError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CharTryFromError> for NCurseswError
impl From<CharTryFromError> for NCurseswError
Source§fn from(source: CharTryFromError) -> NCurseswError
fn from(source: CharTryFromError) -> NCurseswError
Converts to this type from the input type.
Source§impl From<Infallible> for NCurseswError
impl From<Infallible> for NCurseswError
Source§fn from(source: Infallible) -> NCurseswError
fn from(source: Infallible) -> NCurseswError
Converts to this type from the input type.
Source§impl From<NCurseswError> for NCurseswWinError
impl From<NCurseswError> for NCurseswWinError
Source§fn from(source: NCurseswError) -> Self
fn from(source: NCurseswError) -> Self
Converts to this type from the input type.
Source§impl From<NCurseswFormError> for NCurseswError
impl From<NCurseswFormError> for NCurseswError
Source§fn from(source: NCurseswFormError) -> NCurseswError
fn from(source: NCurseswFormError) -> NCurseswError
Converts to this type from the input type.
Source§impl From<NCurseswMenuError> for NCurseswError
impl From<NCurseswMenuError> for NCurseswError
Source§fn from(source: NCurseswMenuError) -> NCurseswError
fn from(source: NCurseswMenuError) -> NCurseswError
Converts to this type from the input type.
Source§impl From<NCurseswMouseError> for NCurseswError
impl From<NCurseswMouseError> for NCurseswError
Source§fn from(source: NCurseswMouseError) -> NCurseswError
fn from(source: NCurseswMouseError) -> NCurseswError
Converts to this type from the input type.
Source§impl From<NCurseswPanelsError> for NCurseswError
impl From<NCurseswPanelsError> for NCurseswError
Source§fn from(source: NCurseswPanelsError) -> NCurseswError
fn from(source: NCurseswPanelsError) -> NCurseswError
Converts to this type from the input type.
Source§impl From<NulError> for NCurseswError
impl From<NulError> for NCurseswError
Source§fn from(source: NulError) -> NCurseswError
fn from(source: NulError) -> NCurseswError
Converts to this type from the input type.
Source§impl From<TryFromIntError> for NCurseswError
impl From<TryFromIntError> for NCurseswError
Source§fn from(source: TryFromIntError) -> NCurseswError
fn from(source: TryFromIntError) -> NCurseswError
Converts to this type from the input type.
Source§impl PartialEq for NCurseswError
impl PartialEq for NCurseswError
impl Eq for NCurseswError
impl StructuralPartialEq for NCurseswError
Auto Trait Implementations§
impl Freeze for NCurseswError
impl RefUnwindSafe for NCurseswError
impl Send for NCurseswError
impl Sync for NCurseswError
impl Unpin for NCurseswError
impl UnwindSafe for NCurseswError
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