pub struct APlayerOptions {
pub autoplay: bool,
pub volume: f32,
pub mutex: bool,
pub list_folded: bool,
pub list_max_height: u32,
/* private fields */
}Fields§
§autoplay: bool§volume: f32§mutex: bool§list_folded: bool§list_max_height: u32Implementations§
Source§impl APlayerOptions
impl APlayerOptions
pub fn fixed_player() -> Self
pub fn mini_player() -> Self
Source§impl APlayerOptions
impl APlayerOptions
pub fn set_audio_list(&mut self, list: &[APlayerAudio]) -> bool
pub fn set_audio_loop(&mut self, cfg: &str) -> bool
pub fn set_audio_order(&mut self) -> bool
pub fn set_preload(&mut self) -> bool
Trait Implementations§
Source§impl Clone for APlayerOptions
impl Clone for APlayerOptions
Source§fn clone(&self) -> APlayerOptions
fn clone(&self) -> APlayerOptions
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 APlayerOptions
impl Debug for APlayerOptions
Source§impl Default for APlayerOptions
impl Default for APlayerOptions
Source§impl<'de> Deserialize<'de> for APlayerOptions
impl<'de> Deserialize<'de> for APlayerOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<APlayerOptions> for JsValue
impl From<APlayerOptions> for JsValue
Source§fn from(value: APlayerOptions) -> Self
fn from(value: APlayerOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for APlayerOptions
impl FromWasmAbi for APlayerOptions
Source§impl IntoWasmAbi for APlayerOptions
impl IntoWasmAbi for APlayerOptions
Source§impl LongRefFromWasmAbi for APlayerOptions
impl LongRefFromWasmAbi for APlayerOptions
Source§impl OptionFromWasmAbi for APlayerOptions
impl OptionFromWasmAbi for APlayerOptions
Source§impl OptionIntoWasmAbi for APlayerOptions
impl OptionIntoWasmAbi for APlayerOptions
Source§impl RefFromWasmAbi for APlayerOptions
impl RefFromWasmAbi for APlayerOptions
Source§type Anchor = RcRef<APlayerOptions>
type Anchor = RcRef<APlayerOptions>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for APlayerOptions
impl RefMutFromWasmAbi for APlayerOptions
Source§impl Serialize for APlayerOptions
impl Serialize for APlayerOptions
Source§impl TryFromJsValue for APlayerOptions
impl TryFromJsValue for APlayerOptions
Source§impl VectorFromWasmAbi for APlayerOptions
impl VectorFromWasmAbi for APlayerOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[APlayerOptions]>
Source§impl VectorIntoJsValue for APlayerOptions
impl VectorIntoJsValue for APlayerOptions
fn vector_into_jsvalue(vector: Box<[APlayerOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for APlayerOptions
impl VectorIntoWasmAbi for APlayerOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[APlayerOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for APlayerOptions
impl WasmDescribeVector for APlayerOptions
impl SupportsConstructor for APlayerOptions
impl SupportsInstanceProperty for APlayerOptions
impl SupportsStaticProperty for APlayerOptions
Auto Trait Implementations§
impl Freeze for APlayerOptions
impl RefUnwindSafe for APlayerOptions
impl Send for APlayerOptions
impl Sync for APlayerOptions
impl Unpin for APlayerOptions
impl UnwindSafe for APlayerOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.