#[repr(u32)]pub enum ValueType {
Show 13 variants
Bool = 1,
I32 = 2,
U32 = 3,
U64 = 4,
F32 = 5,
F64 = 6,
FVector = 7,
DVector = 8,
Euler = 9,
FPlacement = 10,
DPlacement = 11,
String = 12,
I64 = 13,
}Variants§
Bool = 1
I32 = 2
U32 = 3
U64 = 4
F32 = 5
F64 = 6
FVector = 7
DVector = 8
Euler = 9
FPlacement = 10
DPlacement = 11
String = 12
I64 = 13
Implementations§
Source§impl ValueType
impl ValueType
pub const fn from_raw(value: ScsValueType) -> Option<Self>
Sourcepub const fn raw(self) -> ScsValueType
pub const fn raw(self) -> ScsValueType
Returns the numeric discriminator used by the C ABI.
This is primarily useful to framework crates which must retain an SDK
value type after erasing the Rust marker type from a descriptor. Normal
plugin code should prefer the typed decoding methods on crate::Channel
and crate::Attribute.
Sourcepub const fn minimum_api_version(self) -> TelemetryApiVersion
pub const fn minimum_api_version(self) -> TelemetryApiVersion
Oldest Telemetry API which defines this tagged-union representation.
The Telemetry API 1.01 changelog explicitly adds signed 64-bit values. Every other value tag exposed by SDK 1.14 belongs to API 1.00. This is representation availability, not a promise that every channel supports every representation: SCS still performs the channel-specific conversion check during registration.
Trait Implementations§
impl Copy for ValueType
impl Eq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnsafeUnpin for ValueType
impl UnwindSafe for ValueType
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