pub struct RTCDataChannelEventInit { /* private fields */ }Expand description
The RTCDataChannelEventInit dictionary.
Implementations§
Source§impl RTCDataChannelEventInit
impl RTCDataChannelEventInit
Sourcepub fn channel(&self) -> RTCDataChannel
pub fn channel(&self) -> RTCDataChannel
Getter of the channel attribute.
Sourcepub fn set_channel(&mut self, value: &RTCDataChannel)
pub fn set_channel(&mut self, value: &RTCDataChannel)
Setter of the channel attribute.
Methods from Deref<Target = Any>§
Sourcepub fn has_own_property(&self, prop: &str) -> bool
pub fn has_own_property(&self, prop: &str) -> bool
Checks whether a non-inherited property prop exists
Sourcepub fn at<T>(&self, idx: T) -> Val
pub fn at<T>(&self, idx: T) -> Val
Gets the element at index idx. Assumes the underlying js type is indexable
Sourcepub fn to_vec<V>(&self) -> Vec<V>where
V: FromVal,
pub fn to_vec<V>(&self) -> Vec<V>where
V: FromVal,
Converts the underlying js array to a Vec of V
Sourcepub fn call(&self, f: &str, args: &[Val]) -> Val
pub fn call(&self, f: &str, args: &[Val]) -> Val
Calls the method f with args, can return an undefined js value
Sourcepub fn new(&self, args: &[Val]) -> Val
pub fn new(&self, args: &[Val]) -> Val
Calls the object’s constructor with args constructing a new object
Sourcepub fn invoke(&self, args: &[Val]) -> Val
pub fn invoke(&self, args: &[Val]) -> Val
Invokes the function object with args, can return an undefined js value
Sourcepub fn instanceof(&self, v: Val) -> bool
pub fn instanceof(&self, v: Val) -> bool
Checks whether this Val is an instanceof v
pub fn is_number(&self) -> bool
pub fn is_bool(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_null(&self) -> bool
pub fn is_undefined(&self) -> bool
pub fn is_error(&self) -> bool
pub fn is_function(&self) -> bool
pub fn as_<T>(&self) -> Twhere
T: FromVal,
Trait Implementations§
Source§impl AsMut<Val> for RTCDataChannelEventInit
impl AsMut<Val> for RTCDataChannelEventInit
Source§impl AsRef<Val> for RTCDataChannelEventInit
impl AsRef<Val> for RTCDataChannelEventInit
Source§impl Clone for RTCDataChannelEventInit
impl Clone for RTCDataChannelEventInit
Source§fn clone(&self) -> RTCDataChannelEventInit
fn clone(&self) -> RTCDataChannelEventInit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RTCDataChannelEventInit
impl Debug for RTCDataChannelEventInit
Source§impl Deref for RTCDataChannelEventInit
impl Deref for RTCDataChannelEventInit
Source§impl DerefMut for RTCDataChannelEventInit
impl DerefMut for RTCDataChannelEventInit
Source§impl From<&RTCDataChannelEventInit> for Any
impl From<&RTCDataChannelEventInit> for Any
Source§fn from(s: &RTCDataChannelEventInit) -> Any
fn from(s: &RTCDataChannelEventInit) -> Any
Converts to this type from the input type.
Source§impl From<RTCDataChannelEventInit> for Any
impl From<RTCDataChannelEventInit> for Any
Source§fn from(s: RTCDataChannelEventInit) -> Any
fn from(s: RTCDataChannelEventInit) -> Any
Converts to this type from the input type.
Source§impl FromVal for RTCDataChannelEventInit
impl FromVal for RTCDataChannelEventInit
Source§impl PartialEq for RTCDataChannelEventInit
impl PartialEq for RTCDataChannelEventInit
Source§impl PartialOrd for RTCDataChannelEventInit
impl PartialOrd for RTCDataChannelEventInit
impl StructuralPartialEq for RTCDataChannelEventInit
Auto Trait Implementations§
impl Freeze for RTCDataChannelEventInit
impl RefUnwindSafe for RTCDataChannelEventInit
impl Send for RTCDataChannelEventInit
impl Sync for RTCDataChannelEventInit
impl Unpin for RTCDataChannelEventInit
impl UnwindSafe for RTCDataChannelEventInit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more