Derive Macro glib::ErrorDomain
source · #[derive(ErrorDomain)]
{
// Attributes available to this derive:
#[error_domain]
}
Expand description
Derive macro for defining a GLib error domain and its associated
ErrorDomain
trait.
§Example
use glib::prelude::*;
use glib::subclass::prelude::*;
#[derive(Debug, Copy, Clone, glib::ErrorDomain)]
#[error_domain(name = "ex-foo")]
enum Foo {
Blah,
Baaz,
}