[−][src]Struct oxygengine_audio::component::AudioSourceConfig
Fields
audio: Cow<'static, str>
streaming: bool
looped: bool
playback_rate: Scalar
volume: Scalar
play: bool
Implementations
impl AudioSourceConfig
[src]
pub fn new(audio: Cow<'static, str>) -> Self
[src]
pub fn audio(self, value: Cow<'static, str>) -> Self
[src]
pub fn streaming(self, value: bool) -> Self
[src]
pub fn looped(self, value: bool) -> Self
[src]
pub fn playback_rate(self, value: Scalar) -> Self
[src]
pub fn volume(self, value: Scalar) -> Self
[src]
pub fn play(self, value: bool) -> Self
[src]
Trait Implementations
impl Clone for AudioSourceConfig
[src]
fn clone(&self) -> AudioSourceConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AudioSourceConfig
[src]
impl<'de> Deserialize<'de> for AudioSourceConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<AudioSourceConfig> for AudioSource
[src]
fn from(config: AudioSourceConfig) -> Self
[src]
impl Prefab for AudioSourceConfig
[src]
fn from_prefab(data: Value) -> Result<Self, PrefabError>
[src]
fn from_prefab_with_extras(
data: Value,
_named_entities: &HashMap<String, Entity, RandomState>,
_state_token: ID<()>
) -> Result<Self, PrefabError>
[src]
data: Value,
_named_entities: &HashMap<String, Entity, RandomState>,
_state_token: ID<()>
) -> Result<Self, PrefabError>
fn to_prefab(&self) -> Result<Value, PrefabError>
[src]
fn from_prefab_str(data: &str) -> Result<Self, PrefabError>
[src]
fn to_prefab_string(&self) -> Result<String, PrefabError>
[src]
fn post_from_prefab(&mut self)
[src]
impl PrefabProxy<AudioSourceConfig> for AudioSource
[src]
fn from_proxy_with_extras(
proxy: AudioSourcePrefabProxy,
_: &HashMap<String, Entity>,
_: StateToken
) -> Result<Self, PrefabError>
[src]
proxy: AudioSourcePrefabProxy,
_: &HashMap<String, Entity>,
_: StateToken
) -> Result<Self, PrefabError>
impl Serialize for AudioSourceConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for AudioSourceConfig
impl Send for AudioSourceConfig
impl Sync for AudioSourceConfig
impl Unpin for AudioSourceConfig
impl UnwindSafe for AudioSourceConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any,
T: Any,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,