pub trait RTCDataChannelMethods {
Show 27 methods
// Required methods
fn Label(&self) -> USVString;
fn Ordered(&self) -> bool;
fn GetMaxPacketLifeTime(&self) -> Option<u16>;
fn GetMaxRetransmits(&self) -> Option<u16>;
fn Protocol(&self) -> USVString;
fn Negotiated(&self) -> bool;
fn GetId(&self) -> Option<u16>;
fn ReadyState(&self) -> RTCDataChannelState;
fn GetOnopen(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnopen(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnbufferedamountlow(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnbufferedamountlow(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnerror(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnerror(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnclosing(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnclosing(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnclose(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnclose(&self, value: Option<Rc<EventHandlerNonNull>>);
fn Close(&self);
fn GetOnmessage(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmessage(&self, value: Option<Rc<EventHandlerNonNull>>);
fn BinaryType(&self) -> DOMString;
fn SetBinaryType(&self, value: DOMString) -> Result<(), Error>;
fn Send(&self, data: USVString) -> Result<(), Error>;
fn Send_(&self, data: &Blob) -> Result<(), Error>;
fn Send__(
&self,
data: CustomAutoRooterGuard<'_, ArrayBuffer>,
) -> Result<(), Error>;
fn Send___(
&self,
data: CustomAutoRooterGuard<'_, ArrayBufferView>,
) -> Result<(), Error>;
}