#[non_exhaustive]pub enum BuilderError {
Show 15 variants
InvalidTypeFunction,
UnhandledTag,
MissingAttribute,
InvalidAttribute,
InvalidTag,
MissingPropertyValue,
InvalidValue,
VersionMismatch,
DuplicateId,
ObjectTypeRefused,
TemplateMismatch,
InvalidProperty,
InvalidSignal,
InvalidId,
InvalidFunction,
}
Expand description
Error codes that identify various errors that can occur while using
Builder
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidTypeFunction
A type-func attribute didn’t name
a function that returns a GType
.
UnhandledTag
The input contained a tag that Builder
can’t handle.
MissingAttribute
An attribute that is required by
Builder
was missing.
InvalidAttribute
Builder
found an attribute that
it doesn’t understand.
InvalidTag
Builder
found a tag that
it doesn’t understand.
MissingPropertyValue
A required property value was missing.
InvalidValue
Builder
couldn’t parse
some attribute value.
VersionMismatch
The input file requires a newer version of GTK.
DuplicateId
An object id occurred twice.
ObjectTypeRefused
A specified object type is of the same type or derived from the type of the composite class being extended with builder XML.
TemplateMismatch
The wrong type was specified in a composite class’s template XML
InvalidProperty
The specified property is unknown for the object class.
InvalidSignal
The specified signal is unknown for the object class.
InvalidId
An object id is unknown.
InvalidFunction
A function could not be found. This often happens
when symbols are set to be kept private. Compiling code with -rdynamic or using the
gmodule-export-2.0
pkgconfig module can fix this problem.
Trait Implementations§
Source§impl Clone for BuilderError
impl Clone for BuilderError
Source§fn clone(&self) -> BuilderError
fn clone(&self) -> BuilderError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BuilderError
impl Debug for BuilderError
Source§impl ErrorDomain for BuilderError
impl ErrorDomain for BuilderError
Source§impl From<BuilderError> for Value
impl From<BuilderError> for Value
Source§fn from(v: BuilderError) -> Self
fn from(v: BuilderError) -> Self
Source§impl<'a> FromValue<'a> for BuilderError
impl<'a> FromValue<'a> for BuilderError
Source§type Checker = GenericValueTypeChecker<BuilderError>
type Checker = GenericValueTypeChecker<BuilderError>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moreSource§impl HasParamSpec for BuilderError
impl HasParamSpec for BuilderError
type ParamSpec = ParamSpecEnum
Source§type SetValue = BuilderError
type SetValue = BuilderError
type BuilderFn = fn(_: &str, _: BuilderError) -> ParamSpecEnumBuilder<'_, BuilderError>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for BuilderError
impl Hash for BuilderError
Source§impl Ord for BuilderError
impl Ord for BuilderError
Source§fn cmp(&self, other: &BuilderError) -> Ordering
fn cmp(&self, other: &BuilderError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for BuilderError
impl PartialEq for BuilderError
Source§impl PartialOrd for BuilderError
impl PartialOrd for BuilderError
Source§impl StaticType for BuilderError
impl StaticType for BuilderError
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.Source§impl ToValue for BuilderError
impl ToValue for BuilderError
Source§impl ValueType for BuilderError
impl ValueType for BuilderError
Source§type Type = BuilderError
type Type = BuilderError
Type
from. Read moreimpl Copy for BuilderError
impl Eq for BuilderError
impl StructuralPartialEq for BuilderError
Auto Trait Implementations§
impl Freeze for BuilderError
impl RefUnwindSafe for BuilderError
impl Send for BuilderError
impl Sync for BuilderError
impl Unpin for BuilderError
impl UnwindSafe for BuilderError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.