Derive Macro glib_macros::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 = "ExFoo")]
enum Foo {
Blah,
Baaz,
}