Trait HtmlAudioAttributes

Source
pub trait HtmlAudioAttributes: SetAttribute + Sized {
    // Provided methods
    fn autoplay(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
    fn controls(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
    fn crossorigin(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn muted(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
    fn preload(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn src(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn loop(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
}
Expand description

Trait that provides attributes for the <audio> HTML element.

Provided Methods§

Source

fn autoplay(self, value: impl Into<MaybeDyn<bool>>) -> Self

Source

fn controls(self, value: impl Into<MaybeDyn<bool>>) -> Self

Source

fn crossorigin(self, value: impl Into<StringAttribute>) -> Self

Source

fn muted(self, value: impl Into<MaybeDyn<bool>>) -> Self

Source

fn preload(self, value: impl Into<StringAttribute>) -> Self

Source

fn src(self, value: impl Into<StringAttribute>) -> Self

Source

fn loop(self, value: impl Into<MaybeDyn<bool>>) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§