Enum ncursesw::menu::NCurseswMenuError
source · [−]pub enum NCurseswMenuError {
Show 19 variants
BadArgument {
func: String,
},
BadState {
func: String,
},
Connected {
func: String,
},
Current {
func: String,
},
InvalidField {
func: String,
},
NotConnected {
func: String,
},
NotPosted {
func: String,
},
NotSelectable {
func: String,
},
NoMatch {
func: String,
},
NoRoom {
func: String,
},
Ok {
func: String,
},
Posted {
func: String,
},
RequestDenied {
func: String,
},
SystemError {
func: String,
errno: Errno,
},
UnknownCommand {
func: String,
},
UnknownError {
func: String,
errno: i32,
},
IntError {
source: TryFromIntError,
},
NulError {
source: NulError,
},
Infallible {
source: Infallible,
},
}
Expand description
NCursesw menu errors.
Variants
BadArgument
Fields
func: String
Routine detected an incorrect or out-of-range argument.
BadState
Fields
func: String
Connected
Fields
func: String
Item is connected to a menu.
Current
Fields
func: String
InvalidField
Fields
func: String
NotConnected
Fields
func: String
NotPosted
Fields
func: String
NotSelectable
Fields
func: String
NoMatch
Fields
func: String
NoRoom
Fields
func: String
Ok
Fields
func: String
The routine succeeded.
Posted
Fields
func: String
RequestDenied
Fields
func: String
SystemError
System error occurred, (see errno)
UnknownCommand
Fields
func: String
UnknownError
IntError
Fields
source: TryFromIntError
NulError
Fields
source: NulError
Infallible
Fields
source: Infallible
Trait Implementations
sourceimpl Debug for NCurseswMenuError
impl Debug for NCurseswMenuError
sourceimpl Display for NCurseswMenuError
impl Display for NCurseswMenuError
sourceimpl Error for NCurseswMenuError
impl Error for NCurseswMenuError
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<Infallible> for NCurseswMenuError
impl From<Infallible> for NCurseswMenuError
sourcefn from(source: Infallible) -> Self
fn from(source: Infallible) -> 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<NulError> for NCurseswMenuError
impl From<NulError> for NCurseswMenuError
sourceimpl From<TryFromIntError> for NCurseswMenuError
impl From<TryFromIntError> for NCurseswMenuError
sourcefn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Performs the conversion.
sourceimpl PartialEq<NCurseswMenuError> for NCurseswMenuError
impl PartialEq<NCurseswMenuError> for NCurseswMenuError
sourcefn eq(&self, other: &NCurseswMenuError) -> bool
fn eq(&self, other: &NCurseswMenuError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NCurseswMenuError) -> bool
fn ne(&self, other: &NCurseswMenuError) -> bool
This method tests for !=
.
impl Eq for NCurseswMenuError
impl StructuralEq for NCurseswMenuError
impl StructuralPartialEq for NCurseswMenuError
Auto Trait Implementations
impl RefUnwindSafe for NCurseswMenuError
impl Send for NCurseswMenuError
impl Sync for NCurseswMenuError
impl Unpin for NCurseswMenuError
impl UnwindSafe for NCurseswMenuError
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