pub trait ErrorDomain: Copy {
// Required methods
fn domain() -> Quark;
fn code(self) -> i32;
fn from(code: i32) -> Option<Self>
where Self: Sized;
}
Expand description
GLib
error domain.
This trait is implemented by error enums that represent error domains (types).
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl ErrorDomain for ConvertError
impl ErrorDomain for FileError
impl ErrorDomain for KeyFileError
impl ErrorDomain for MarkupError
impl ErrorDomain for UriError
Available on crate feature
v2_66
only.