#[repr(C)]pub struct SsSignalParamData {
pub id: *const c_char,
pub value_type: u32,
pub bool_value: bool,
pub int_value: i32,
pub float_value: f32,
pub text: *const c_char,
}Expand description
One signal parameter, flattened for the ABI. value_type says which field
to read; SS_SIGNAL_VALUE_NONE means the parameter exists but was left
unset.
id and text are owned by the scene and valid until the next
ss_player_event_signal_param_at on it. Never null.
Fields§
§id: *const c_char§value_type: u32One of the SS_SIGNAL_VALUE_* constants.
bool_value: boolWhen value_type is BOOL.
int_value: i32When value_type is INDEX or INTEGER.
float_value: f32When value_type is FLOATING.
text: *const c_charWhen value_type is TEXT.
Trait Implementations§
Source§impl Clone for SsSignalParamData
impl Clone for SsSignalParamData
impl Copy for SsSignalParamData
Auto Trait Implementations§
impl !Send for SsSignalParamData
impl !Sync for SsSignalParamData
impl Freeze for SsSignalParamData
impl RefUnwindSafe for SsSignalParamData
impl Unpin for SsSignalParamData
impl UnsafeUnpin for SsSignalParamData
impl UnwindSafe for SsSignalParamData
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