Trait glib::error::ErrorDomain [−][src]
GLib
error domain.
This trait is implemented by error enums that represent error domains (types).
Required methods
fn domain() -> Quark
[src]
Returns the quark identifying the error domain.
As returned from g_some_error_quark
.
fn code(self) -> i32
[src]
Gets the integer representation of the variant.
fn from(code: i32) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
Tries to convert an integer code to an enum variant.
By convention, the Failed
variant, if present, is a catch-all,
i.e. any unrecognized codes map to it.