pub struct PlaySoundSpec {
pub server_id: s32,
pub spec_name: String,
pub spec_gain: f32,
pub typ: u8,
pub pos: v3f,
pub object_id: u16,
pub spec_loop: bool,
pub spec_fade: Option<f32>,
pub spec_pitch: Option<f32>,
pub ephemeral: Option<bool>,
}
Fields§
§server_id: s32
§spec_name: String
§spec_gain: f32
§typ: u8
§pos: v3f
§object_id: u16
§spec_loop: bool
§spec_fade: Option<f32>
§spec_pitch: Option<f32>
§ephemeral: Option<bool>
Trait Implementations§
Source§impl Clone for PlaySoundSpec
impl Clone for PlaySoundSpec
Source§fn clone(&self) -> PlaySoundSpec
fn clone(&self) -> PlaySoundSpec
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 PlaySoundSpec
impl Debug for PlaySoundSpec
Source§impl Deserialize for PlaySoundSpec
impl Deserialize for PlaySoundSpec
Source§type Output = PlaySoundSpec
type Output = PlaySoundSpec
Output should be Self, except for wrapper types.
fn deserialize(deser: &mut Deserializer<'_>) -> DeserializeResult<Self>
Source§impl From<PlaySoundSpec> for ToClientCommand
impl From<PlaySoundSpec> for ToClientCommand
Source§fn from(value: PlaySoundSpec) -> Self
fn from(value: PlaySoundSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PlaySoundSpec
impl PartialEq for PlaySoundSpec
Source§impl Serialize for PlaySoundSpec
impl Serialize for PlaySoundSpec
type Input = PlaySoundSpec
fn serialize<S: Serializer>(value: &Self::Input, ser: &mut S) -> SerializeResult
impl StructuralPartialEq for PlaySoundSpec
Auto Trait Implementations§
impl Freeze for PlaySoundSpec
impl RefUnwindSafe for PlaySoundSpec
impl Send for PlaySoundSpec
impl Sync for PlaySoundSpec
impl Unpin for PlaySoundSpec
impl UnwindSafe for PlaySoundSpec
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