Enum ncursesw::NCurseswError
source · [−]pub enum NCurseswError {
Show 18 variants
LibraryError {
func: String,
rc: Option<i32>,
},
InterruptedCall,
KeyResize,
KeyEvent,
ColorParseError {
color: String,
},
ColorLimit,
ColorPairLimit,
InvalidCapability,
WideCharTryFromError {
inner: wint_t,
},
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
Fields
color: String
ColorLimit
ColorPairLimit
InvalidCapability
WideCharTryFromError
Fields
inner: wint_t
IntError
Fields
source: TryFromIntError
CharError
Fields
source: CharTryFromError
NulError
Fields
source: NulError
Infallible
Fields
source: Infallible
PanelsError
Fields
source: NCurseswPanelsError
MouseError
Fields
source: NCurseswMouseError
MenuError
Fields
source: NCurseswMenuError
FormError
Fields
source: NCurseswFormError
OSError
Trait Implementations
sourceimpl Debug for NCurseswError
impl Debug for NCurseswError
sourceimpl Display for NCurseswError
impl Display for NCurseswError
sourceimpl Error for NCurseswError
impl Error for NCurseswError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<CharTryFromError> for NCurseswError
impl From<CharTryFromError> for NCurseswError
sourcefn from(source: CharTryFromError) -> Self
fn from(source: CharTryFromError) -> Self
Performs the conversion.
sourceimpl From<Infallible> for NCurseswError
impl From<Infallible> for NCurseswError
sourcefn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Performs the conversion.
sourceimpl From<NCurseswFormError> for NCurseswError
impl From<NCurseswFormError> for NCurseswError
sourcefn from(source: NCurseswFormError) -> Self
fn from(source: NCurseswFormError) -> Self
Performs the conversion.
sourceimpl From<NCurseswMenuError> for NCurseswError
impl From<NCurseswMenuError> for NCurseswError
sourcefn from(source: NCurseswMenuError) -> Self
fn from(source: NCurseswMenuError) -> Self
Performs the conversion.
sourceimpl From<NCurseswMouseError> for NCurseswError
impl From<NCurseswMouseError> for NCurseswError
sourcefn from(source: NCurseswMouseError) -> Self
fn from(source: NCurseswMouseError) -> Self
Performs the conversion.
sourceimpl From<NCurseswPanelsError> for NCurseswError
impl From<NCurseswPanelsError> for NCurseswError
sourcefn from(source: NCurseswPanelsError) -> Self
fn from(source: NCurseswPanelsError) -> Self
Performs the conversion.
sourceimpl From<NulError> for NCurseswError
impl From<NulError> for NCurseswError
sourceimpl From<TryFromIntError> for NCurseswError
impl From<TryFromIntError> for NCurseswError
sourcefn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Performs the conversion.
sourceimpl PartialEq<NCurseswError> for NCurseswError
impl PartialEq<NCurseswError> for NCurseswError
sourcefn eq(&self, other: &NCurseswError) -> bool
fn eq(&self, other: &NCurseswError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NCurseswError) -> bool
fn ne(&self, other: &NCurseswError) -> bool
This method tests for !=
.
impl Eq for NCurseswError
impl StructuralEq for NCurseswError
impl StructuralPartialEq for NCurseswError
Auto Trait Implementations
impl RefUnwindSafe for NCurseswError
impl Send for NCurseswError
impl Sync for NCurseswError
impl Unpin for NCurseswError
impl UnwindSafe for NCurseswError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more