#[non_exhaustive]pub enum RepositoryError {
TypelibNotFound,
NamespaceMismatch,
NamespaceVersionConflict,
LibraryNotFound,
}
Expand description
An error code used with G_IREPOSITORY_ERROR
in a [glib::Error
][crate::glib::Error] returned
from a Repository
routine.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TypelibNotFound
the typelib could not be found.
NamespaceMismatch
the namespace does not match the requested namespace.
NamespaceVersionConflict
the version of the typelib does not match the requested version.
LibraryNotFound
the library used by the typelib could not be found.
Trait Implementations§
Source§impl Clone for RepositoryError
impl Clone for RepositoryError
Source§fn clone(&self) -> RepositoryError
fn clone(&self) -> RepositoryError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RepositoryError
impl Debug for RepositoryError
Source§impl Display for RepositoryError
impl Display for RepositoryError
Source§impl Hash for RepositoryError
impl Hash for RepositoryError
Source§impl Ord for RepositoryError
impl Ord for RepositoryError
Source§fn cmp(&self, other: &RepositoryError) -> Ordering
fn cmp(&self, other: &RepositoryError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RepositoryError
impl PartialEq for RepositoryError
Source§impl PartialOrd for RepositoryError
impl PartialOrd for RepositoryError
impl Copy for RepositoryError
impl Eq for RepositoryError
impl StructuralPartialEq for RepositoryError
Auto Trait Implementations§
impl Freeze for RepositoryError
impl RefUnwindSafe for RepositoryError
impl Send for RepositoryError
impl Sync for RepositoryError
impl Unpin for RepositoryError
impl UnwindSafe for RepositoryError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more