pub trait TextTrackMethods<D: DomTypes> {
// Required methods
fn Kind(&self) -> TextTrackKind;
fn Label(&self) -> DOMString;
fn Language(&self) -> DOMString;
fn Id(&self) -> DOMString;
fn Mode(&self) -> TextTrackMode;
fn SetMode(&self, value: TextTrackMode);
fn GetCues(&self) -> Option<DomRoot<D::TextTrackCueList>>;
fn GetActiveCues(&self) -> Option<DomRoot<D::TextTrackCueList>>;
fn AddCue(&self, cue: &D::TextTrackCue) -> Fallible<()>;
fn RemoveCue(&self, cue: &D::TextTrackCue) -> Fallible<()>;
fn GetOncuechange(
&self,
cx: &mut JSContext,
) -> Option<Rc<EventHandlerNonNull<D>>>;
fn SetOncuechange(
&self,
cx: &mut JSContext,
value: Option<Rc<EventHandlerNonNull<D>>>,
);
}Required Methods§
fn Kind(&self) -> TextTrackKind
fn Label(&self) -> DOMString
fn Language(&self) -> DOMString
fn Id(&self) -> DOMString
fn Mode(&self) -> TextTrackMode
fn SetMode(&self, value: TextTrackMode)
fn GetCues(&self) -> Option<DomRoot<D::TextTrackCueList>>
fn GetActiveCues(&self) -> Option<DomRoot<D::TextTrackCueList>>
fn AddCue(&self, cue: &D::TextTrackCue) -> Fallible<()>
fn RemoveCue(&self, cue: &D::TextTrackCue) -> Fallible<()>
fn GetOncuechange( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>
fn SetOncuechange( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".