#[repr(u32)]pub enum EventProperty {
ChannelPriority = 0,
ScheduleDelay = 1,
ScheduleLookahead = 2,
MinimumDistance = 3,
MaximumDistance = 4,
Cooldown = 5,
}
Available on crate feature
studio
only.Expand description
These definitions describe built-in event properties.
Variants§
ChannelPriority = 0
Priority to set on Core API Channels created by this event instance, or -1 for default.
ScheduleDelay = 1
Schedule delay in DSP clocks, or -1 for default.
ScheduleLookahead = 2
Schedule look-ahead on the timeline in DSP clocks, or -1 for default.
MinimumDistance = 3
Override the event’s 3D minimum distance, or -1 for default.
MaximumDistance = 4
Override the event’s 3D maximum distance, or -1 for default.
Cooldown = 5
Override the event’s cooldown, or -1 for default.
Trait Implementations§
Source§impl Clone for EventProperty
impl Clone for EventProperty
Source§fn clone(&self) -> EventProperty
fn clone(&self) -> EventProperty
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EventProperty
impl Debug for EventProperty
Source§impl From<EventProperty> for u32
impl From<EventProperty> for u32
Source§fn from(enum_value: EventProperty) -> Self
fn from(enum_value: EventProperty) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EventProperty
impl PartialEq for EventProperty
Source§impl TryFrom<u32> for EventProperty
impl TryFrom<u32> for EventProperty
Source§type Error = TryFromPrimitiveError<EventProperty>
type Error = TryFromPrimitiveError<EventProperty>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for EventProperty
impl TryFromPrimitive for EventProperty
const NAME: &'static str = "EventProperty"
type Primitive = u32
type Error = TryFromPrimitiveError<EventProperty>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Source§impl UnsafeFromPrimitive for EventProperty
impl UnsafeFromPrimitive for EventProperty
type Primitive = u32
Source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Transmutes into an enum from its primitive. Read more
Source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
👎Deprecated since 0.6.0: Prefer to use
unchecked_transmute_from
, from_unchecked
will be removed in a future release.Transmutes into an enum from its primitive. Read more
impl Copy for EventProperty
impl Eq for EventProperty
impl StructuralPartialEq for EventProperty
Auto Trait Implementations§
impl Freeze for EventProperty
impl RefUnwindSafe for EventProperty
impl Send for EventProperty
impl Sync for EventProperty
impl Unpin for EventProperty
impl UnwindSafe for EventProperty
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