pub struct CommandInfo {
pub command_name: Utf8CString,
pub parent_command_index: c_int,
pub frame_number: c_int,
pub frame_time: c_float,
pub instance_type: InstanceType,
pub output_type: InstanceType,
pub instance_handle: c_uint,
pub output_handle: c_uint,
}Available on crate feature
studio only.Expand description
Describes a command replay command.
Fields§
§command_name: Utf8CStringFully qualified C++ name of the API function for this command.
parent_command_index: c_intIndex of the command that created the instance this command operates on, or -1 if the command does not operate on any instance.
frame_number: c_intFrame the command belongs to.
frame_time: c_floatPlayback time at which this command will be executed.
instance_type: InstanceTypeType of object that this command uses as an instance.
output_type: InstanceTypeType of object that this command outputs.
instance_handle: c_uintOriginal handle value of the instance.
output_handle: c_uintOriginal handle value of the command output.
Implementations§
Source§impl CommandInfo
impl CommandInfo
Sourcepub unsafe fn from_ffi(value: FMOD_STUDIO_COMMAND_INFO) -> Self
pub unsafe fn from_ffi(value: FMOD_STUDIO_COMMAND_INFO) -> Self
Create a safe CommandInfo struct from the FFI equivalent.
§Safety
All string values from the FFI struct must be a null-terminated and must be valid for reads of bytes up to and including the nul terminator.
See Utf8CStr::from_ptr_unchecked for more information.
Trait Implementations§
Source§impl Clone for CommandInfo
impl Clone for CommandInfo
Source§fn clone(&self) -> CommandInfo
fn clone(&self) -> CommandInfo
Returns a duplicate 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 CommandInfo
impl Debug for CommandInfo
Source§impl From<&CommandInfo> for FMOD_STUDIO_COMMAND_INFO
impl From<&CommandInfo> for FMOD_STUDIO_COMMAND_INFO
Source§fn from(value: &CommandInfo) -> Self
fn from(value: &CommandInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommandInfo
impl RefUnwindSafe for CommandInfo
impl Send for CommandInfo
impl Sync for CommandInfo
impl Unpin for CommandInfo
impl UnwindSafe for CommandInfo
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