pub(crate) trait MediaMetadataMethods<D: DomTypes> {
// Required methods
fn Title(&self) -> DOMString;
fn SetTitle(&self, value: DOMString);
fn Artist(&self) -> DOMString;
fn SetArtist(&self, value: DOMString);
fn Album(&self) -> DOMString;
fn SetAlbum(&self, value: DOMString);
fn Constructor(
global: &D::Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
init: &MediaMetadataInit,
) -> Fallible<DomRoot<D::MediaMetadata>>;
}
Required Methods§
fn Title(&self) -> DOMString
fn SetTitle(&self, value: DOMString)
fn Artist(&self) -> DOMString
fn SetArtist(&self, value: DOMString)
fn Album(&self) -> DOMString
fn SetAlbum(&self, value: DOMString)
fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, init: &MediaMetadataInit, ) -> Fallible<DomRoot<D::MediaMetadata>>
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.