Enum ark_api::world::EntityValueError
source · [−]#[non_exhaustive]
pub enum EntityValueError {
Show 13 variants
NanValue,
InfiniteParamValue,
InvalidComponentType,
InvalidComponentParameterId,
InvalidComponent,
InvalidEntityKey,
InvalidParentOfParent,
IncompatibleValueType,
IncompatibleValue,
Unsettable,
Ungettable,
NotAvailable,
Unknown(String),
}Expand description
Error value that is returned from get/set entity value functions.
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.
NanValue
The component parameter value is a NaN value.
InfiniteParamValue
The component parameter value is an infinite value.
InvalidComponentType
The supplied component type is invalid.
InvalidComponentParameterId
The supplied component parameter id is invalid.
InvalidComponent
The component did not exist.
InvalidEntityKey
Invalid supplied entity key
InvalidParentOfParent
Invalid parent of parent (a parent was pointing to an invalid entity)
IncompatibleValueType
Trying to set an entity value that is incompatible with the component parameter value type.
IncompatibleValue
Trying to set an entity value that is incompatible with the component parameter value.
Unsettable
Could not set the entity component parameter value.
Ungettable
Could not get the entity component parameter value.
NotAvailable
The component was not available.
Unknown(String)
Unknown error occurred.
Trait Implementations
sourceimpl Clone for EntityValueError
impl Clone for EntityValueError
sourcefn clone(&self) -> EntityValueError
fn clone(&self) -> EntityValueError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for EntityValueError
impl Debug for EntityValueError
sourceimpl Display for EntityValueError
impl Display for EntityValueError
sourceimpl Error for EntityValueError
impl Error for EntityValueError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<EntityValueError> for EntityValueError
impl From<EntityValueError> for EntityValueError
sourcefn from(error: EntityValueError) -> Self
fn from(error: EntityValueError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<EntityValueError> for EntityValueError
impl PartialEq<EntityValueError> for EntityValueError
sourcefn eq(&self, other: &EntityValueError) -> bool
fn eq(&self, other: &EntityValueError) -> bool
impl StructuralPartialEq for EntityValueError
Auto Trait Implementations
impl RefUnwindSafe for EntityValueError
impl Send for EntityValueError
impl Sync for EntityValueError
impl Unpin for EntityValueError
impl UnwindSafe for EntityValueError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
