pub(crate) trait RTCDataChannelEventMethods<D: DomTypes> {
// Required methods
fn Channel(&self) -> DomRoot<D::RTCDataChannel>;
fn IsTrusted(&self) -> bool;
fn Constructor(
global: &D::Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
type_: DOMString,
eventInitDict: &RTCDataChannelEventInit<D>,
) -> DomRoot<D::RTCDataChannelEvent>;
}
Required Methods§
fn Channel(&self) -> DomRoot<D::RTCDataChannel>
fn IsTrusted(&self) -> bool
fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: &RTCDataChannelEventInit<D>, ) -> DomRoot<D::RTCDataChannelEvent>
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.