Struct glib::error::Error [−][src]
pub struct Error(_);
Expand description
A generic error capable of representing various error domains (types).
The GError structure contains information about
an error that has occurred.
Implementations
Checks if the error domain matches T.
Tries to convert to a specific error enum.
Returns Some if the error belongs to the enum’s error domain and
None otherwise.
Examples
if let Some(file_error) = error.kind::<FileError>() { match file_error { FileError::Exist => ... FileError::Isdir => ... ... } }
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Returns the type identifier of Self.
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue clone of self.
impl<'a, T, C> FromValueOptional<'a> for T where
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,