Enum native_windows_gui::NwgError
source · [−]pub enum NwgError {
Unknown,
InitializationError(String),
ControlCreationError(String),
MenuCreationError(String),
ResourceCreationError(String),
LayoutCreationError(String),
EventsBinding(String),
FileDialogError(String),
ImageDecoderError(i32, String),
BadLocale(String),
Plotters(PlottersError),
}
Expand description
Error enums used in the native window gui crate
Variants
Unknown
InitializationError(String)
Fatal error raised when calling low level winapi functionalities
ControlCreationError(String)
Error raised when creating a control.
MenuCreationError(String)
Error raised when creating a menu.
ResourceCreationError(String)
Error raised when creating a resource.
LayoutCreationError(String)
Error raised when the creation of a layout failed
EventsBinding(String)
Error raised when an event handler could not be bound
FileDialogError(String)
Error raised by the FileDialog object
ImageDecoderError(i32, String)
Error raised by the ImageDecoder feature
BadLocale(String)
Error raised by one of the locale functions
Plotters(PlottersError)
Error raised by one of the locale functions
Implementations
sourceimpl NwgError
impl NwgError
pub fn initialization<S: Into<String>>(e: S) -> NwgError
pub fn control_create<S: Into<String>>(e: S) -> NwgError
pub fn resource_create<S: Into<String>>(e: S) -> NwgError
pub fn layout_create<S: Into<String>>(e: S) -> NwgError
pub fn events_binding<S: Into<String>>(e: S) -> NwgError
pub fn file_dialog<S: Into<String>>(e: S) -> NwgError
pub fn bad_locale<S: Into<String>>(e: S) -> NwgError
pub fn image_decoder<S: Into<String>>(code: i32, e: S) -> NwgError
pub fn no_parent(name: &'static str) -> NwgError
Trait Implementations
sourceimpl Error for NwgError
impl Error for NwgError
1.30.0 · 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
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<PlottersError> for NwgError
impl From<PlottersError> for NwgError
sourcefn from(e: PlottersError) -> Self
fn from(e: PlottersError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for NwgError
impl Send for NwgError
impl Sync for NwgError
impl Unpin for NwgError
impl UnwindSafe for NwgError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more