Struct minetest_protocol::wire::command::PlaySoundSpec
source · 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 copy 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 PlaySoundSpec
impl Debug for PlaySoundSpec
source§impl Deserialize for PlaySoundSpec
impl Deserialize for PlaySoundSpec
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<PlaySoundSpec> for PlaySoundSpec
impl PartialEq<PlaySoundSpec> for PlaySoundSpec
source§fn eq(&self, other: &PlaySoundSpec) -> bool
fn eq(&self, other: &PlaySoundSpec) -> bool
This method tests for
self and other values to be equal, and is used
by ==.