[][src]Enum native_windows_gui::NwgError

pub enum NwgError {
    Unknown,
    InitializationError(String),
    ControlCreationError(String),
    MenuCreationError(String),
    ResourceCreationError(String),
    LayoutCreationError(String),
    EventsBinding(String),
    FileDialogError(String),
    ImageDecoderError(i32String),
    BadLocale(String),
}

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(i32String)

Error raised by the ImageDecoder feature

BadLocale(String)

Error raised by one of the locale functions

Implementations

impl NwgError[src]

pub fn initialization<S: Into<String>>(e: S) -> NwgError[src]

pub fn control_create<S: Into<String>>(e: S) -> NwgError[src]

pub fn menu_create<S: Into<String>>(e: S) -> NwgError[src]

pub fn resource_create<S: Into<String>>(e: S) -> NwgError[src]

pub fn layout_create<S: Into<String>>(e: S) -> NwgError[src]

pub fn events_binding<S: Into<String>>(e: S) -> NwgError[src]

pub fn file_dialog<S: Into<String>>(e: S) -> NwgError[src]

pub fn bad_locale<S: Into<String>>(e: S) -> NwgError[src]

pub fn image_decoder<S: Into<String>>(code: i32, e: S) -> NwgError[src]

pub fn no_parent(name: &'static str) -> NwgError[src]

pub fn no_parent_menu() -> NwgError[src]

Trait Implementations

impl Clone for NwgError[src]

impl Debug for NwgError[src]

impl Display for NwgError[src]

impl Error for NwgError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.