pub struct DataChannel { /* private fields */ }Implementations§
Source§impl DataChannel
impl DataChannel
pub fn register_observer(&self, observer: Box<DataChannelObserverWrapper>)
pub fn unregister_observer(&self)
pub fn send(&self, data: &DataBuffer) -> bool
pub fn id(&self) -> i32
pub fn label(&self) -> String
pub fn state(&self) -> DataState
pub fn close(&self)
pub fn buffered_amount(&self) -> u64
Trait Implementations§
Source§impl ExternType for DataChannel
impl ExternType for DataChannel
impl Send for DataChannel
impl Sync for DataChannel
Auto Trait Implementations§
impl !Freeze for DataChannel
impl RefUnwindSafe for DataChannel
impl !Unpin for DataChannel
impl UnwindSafe for DataChannel
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