Struct script::dom::rtcdatachannelevent::RTCDataChannelEvent
source · #[repr(C)]pub struct RTCDataChannelEvent {
event: Event,
channel: Dom<RTCDataChannel>,
}
Fields
event: Event
channel: Dom<RTCDataChannel>
Implementations
sourceimpl RTCDataChannelEvent
impl RTCDataChannelEvent
fn __assert_parent_type(&self)
sourceimpl RTCDataChannelEvent
impl RTCDataChannelEvent
fn new_inherited(channel: &RTCDataChannel) -> RTCDataChannelEvent
pub fn new(
global: &GlobalScope,
type_: Atom,
bubbles: bool,
cancelable: bool,
channel: &RTCDataChannel
) -> Root<Dom<RTCDataChannelEvent>>
pub fn Constructor(
window: &Window,
type_: DOMString,
init: &RTCDataChannelEventInit
) -> Root<Dom<RTCDataChannelEvent>>
Trait Implementations
sourceimpl Castable for RTCDataChannelEvent
impl Castable for RTCDataChannelEvent
sourcefn is<T>(&self) -> boolwhere
T: DerivedFrom<Self>,
fn is<T>(&self) -> boolwhere
T: DerivedFrom<Self>,
Check whether a DOM object implements one of its deriving interfaces.
sourcefn upcast<T>(&self) -> &Twhere
T: Castable,
Self: DerivedFrom<T>,
fn upcast<T>(&self) -> &Twhere
T: Castable,
Self: DerivedFrom<T>,
Cast a DOM object upwards to one of the interfaces it derives from.
sourcefn downcast<T>(&self) -> Option<&T>where
T: DerivedFrom<Self>,
fn downcast<T>(&self) -> Option<&T>where
T: DerivedFrom<Self>,
Cast a DOM object downwards to one of the interfaces it might implement.
sourceimpl DomObject for RTCDataChannelEvent
impl DomObject for RTCDataChannelEvent
sourceimpl DomObjectWrap for RTCDataChannelEvent
impl DomObjectWrap for RTCDataChannelEvent
sourceconst WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::RTCDataChannelEventBinding::RTCDataChannelEventBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::rtcdatachannelevent::RTCDataChannelEvent>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::rtcdatachannelevent::RTCDataChannelEvent>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::RTCDataChannelEventBinding::RTCDataChannelEventBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::rtcdatachannelevent::RTCDataChannelEvent>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::rtcdatachannelevent::RTCDataChannelEvent>>}
Function pointer to the general wrap function type
sourceimpl HasParent for RTCDataChannelEvent
impl HasParent for RTCDataChannelEvent
sourceimpl IDLInterface for RTCDataChannelEvent
impl IDLInterface for RTCDataChannelEvent
sourceimpl JSTraceable for RTCDataChannelEvent
impl JSTraceable for RTCDataChannelEvent
sourceimpl MallocSizeOf for RTCDataChannelEvent
impl MallocSizeOf for RTCDataChannelEvent
sourcefn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself. Read more
sourceimpl MutDomObject for RTCDataChannelEvent
impl MutDomObject for RTCDataChannelEvent
sourceunsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
sourceimpl PartialEq<RTCDataChannelEvent> for RTCDataChannelEvent
impl PartialEq<RTCDataChannelEvent> for RTCDataChannelEvent
sourcefn eq(&self, other: &RTCDataChannelEvent) -> bool
fn eq(&self, other: &RTCDataChannelEvent) -> bool
sourceimpl ToJSValConvertible for RTCDataChannelEvent
impl ToJSValConvertible for RTCDataChannelEvent
sourceunsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
Convert
self
to a JSVal
. JSAPI failure causes a panic.impl DerivedFrom<Event> for RTCDataChannelEvent
Auto Trait Implementations
impl !RefUnwindSafe for RTCDataChannelEvent
impl !Send for RTCDataChannelEvent
impl !Sync for RTCDataChannelEvent
impl Unpin for RTCDataChannelEvent
impl !UnwindSafe for RTCDataChannelEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
sourcefn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
sourceimpl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
sourcefn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert