pub enum PropertyError {
NotFound,
ReadOnly,
NotEnum,
NotNumber,
ValueOutOfRange {
min: PropertyValue,
max: PropertyValue,
value: PropertyValue,
},
ValueNotSupported,
IsEnum,
AutoNotSupported,
InvalidControlType {
expected: PropertyType,
received: PropertyType,
},
EmptyEnumList,
}Expand description
Property value error
Variants§
NotFound
Property not found.
ReadOnly
Read only property.
NotEnum
Property not an enum.
NotNumber
Property is not a number.
ValueOutOfRange
Value out of range.
Fields
§
min: PropertyValueThe minimum value.
§
max: PropertyValueThe maximum value.
§
value: PropertyValueThe supplied value.
ValueNotSupported
Value not contained in the enum list.
IsEnum
Property is an enum, hence does not support min/max.
AutoNotSupported
Auto mode not supported.
InvalidControlType
Invalid control type.
EmptyEnumList
Empty enum list.
Trait Implementations§
source§impl Clone for PropertyError
impl Clone for PropertyError
source§fn clone(&self) -> PropertyError
fn clone(&self) -> PropertyError
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PropertyError
impl Debug for PropertyError
source§impl<'de> Deserialize<'de> for PropertyError
impl<'de> Deserialize<'de> for PropertyError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PropertyError
impl Display for PropertyError
source§impl Error for PropertyError
impl Error for PropertyError
1.81.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.81.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for PropertyError
impl PartialEq for PropertyError
source§impl Serialize for PropertyError
impl Serialize for PropertyError
impl StructuralPartialEq for PropertyError
Auto Trait Implementations§
impl Freeze for PropertyError
impl RefUnwindSafe for PropertyError
impl Send for PropertyError
impl Sync for PropertyError
impl Unpin for PropertyError
impl UnwindSafe for PropertyError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more