pub struct DataChannelInit { /* private fields */ }
Implementations§
Source§impl DataChannelInit
impl DataChannelInit
pub fn reliability(self, reliability: Reliability) -> DataChannelInit
pub fn protocol(self, protocol: &str) -> DataChannelInit
pub fn negotiated(self) -> DataChannelInit
pub fn manual_stream(self) -> DataChannelInit
Sourcepub fn stream(self, stream: u16) -> DataChannelInit
pub fn stream(self, stream: u16) -> DataChannelInit
numeric ID 0-65534, ignored if manual_stream
is false
Trait Implementations§
Source§impl Clone for DataChannelInit
impl Clone for DataChannelInit
Source§fn clone(&self) -> DataChannelInit
fn clone(&self) -> DataChannelInit
Returns a copy 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 DataChannelInit
impl Debug for DataChannelInit
Source§impl Default for DataChannelInit
impl Default for DataChannelInit
Source§fn default() -> DataChannelInit
fn default() -> DataChannelInit
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DataChannelInit
impl RefUnwindSafe for DataChannelInit
impl Send for DataChannelInit
impl Sync for DataChannelInit
impl Unpin for DataChannelInit
impl UnwindSafe for DataChannelInit
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