Enum openvr_sys2::vr::ETrackedPropertyError
source · #[repr(u32)]pub enum ETrackedPropertyError {
Show 16 variants
TrackedProp_Success,
TrackedProp_WrongDataType,
TrackedProp_WrongDeviceClass,
TrackedProp_BufferTooSmall,
TrackedProp_UnknownProperty,
TrackedProp_InvalidDevice,
TrackedProp_CouldNotContactServer,
TrackedProp_ValueNotProvidedByDevice,
TrackedProp_StringExceedsMaximumLength,
TrackedProp_NotYetAvailable,
TrackedProp_PermissionDenied,
TrackedProp_InvalidOperation,
TrackedProp_CannotWriteToWildcards,
TrackedProp_IPCReadFailure,
TrackedProp_OutOfMemory,
TrackedProp_InvalidContainer,
}Expand description
Used to return errors that occur when reading properties.
Variants§
TrackedProp_Success
TrackedProp_WrongDataType
TrackedProp_WrongDeviceClass
TrackedProp_BufferTooSmall
TrackedProp_UnknownProperty
TrackedProp_InvalidDevice
TrackedProp_CouldNotContactServer
TrackedProp_ValueNotProvidedByDevice
TrackedProp_StringExceedsMaximumLength
TrackedProp_NotYetAvailable
TrackedProp_PermissionDenied
TrackedProp_InvalidOperation
TrackedProp_CannotWriteToWildcards
TrackedProp_IPCReadFailure
TrackedProp_OutOfMemory
TrackedProp_InvalidContainer
Implementations§
source§impl ETrackedPropertyError
impl ETrackedPropertyError
pub fn into_result(self) -> Result<(), Self>
Trait Implementations§
source§impl Clone for ETrackedPropertyError
impl Clone for ETrackedPropertyError
source§fn clone(&self) -> ETrackedPropertyError
fn clone(&self) -> ETrackedPropertyError
Returns a copy of the value. Read more
1.0.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 ETrackedPropertyError
impl Debug for ETrackedPropertyError
source§impl Display for ETrackedPropertyError
impl Display for ETrackedPropertyError
source§impl Error for ETrackedPropertyError
impl Error for ETrackedPropertyError
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl ExternType for ETrackedPropertyError
impl ExternType for ETrackedPropertyError
source§impl Hash for ETrackedPropertyError
impl Hash for ETrackedPropertyError
source§impl PartialEq<ETrackedPropertyError> for ETrackedPropertyError
impl PartialEq<ETrackedPropertyError> for ETrackedPropertyError
source§fn eq(&self, other: &ETrackedPropertyError) -> bool
fn eq(&self, other: &ETrackedPropertyError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ETrackedPropertyError
impl StructuralEq for ETrackedPropertyError
impl StructuralPartialEq for ETrackedPropertyError
impl UniquePtrTarget for ETrackedPropertyError
impl VectorElement for ETrackedPropertyError
impl WeakPtrTarget for ETrackedPropertyError
Auto Trait Implementations§
impl RefUnwindSafe for ETrackedPropertyError
impl Send for ETrackedPropertyError
impl Sync for ETrackedPropertyError
impl Unpin for ETrackedPropertyError
impl UnwindSafe for ETrackedPropertyError
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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.