pub struct EmulateNetworkConditionsParamsBuilder { /* private fields */ }Implementations§
Source§impl EmulateNetworkConditionsParamsBuilder
impl EmulateNetworkConditionsParamsBuilder
Sourcepub fn connection_type(self, connection_type: impl Into<ConnectionType>) -> Self
pub fn connection_type(self, connection_type: impl Into<ConnectionType>) -> Self
Connection type if known.
Sourcepub fn packet_loss(self, packet_loss: f64) -> Self
pub fn packet_loss(self, packet_loss: f64) -> Self
WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets.
Sourcepub fn packet_queue_length(self, packet_queue_length: u64) -> Self
pub fn packet_queue_length(self, packet_queue_length: u64) -> Self
WebRTC packet queue length (packet). 0 removes any queue length limitations.
Sourcepub fn packet_reordering(self, packet_reordering: bool) -> Self
pub fn packet_reordering(self, packet_reordering: bool) -> Self
WebRTC packetReordering feature.
pub fn build(self) -> EmulateNetworkConditionsParams
Auto Trait Implementations§
impl Freeze for EmulateNetworkConditionsParamsBuilder
impl RefUnwindSafe for EmulateNetworkConditionsParamsBuilder
impl Send for EmulateNetworkConditionsParamsBuilder
impl Sync for EmulateNetworkConditionsParamsBuilder
impl Unpin for EmulateNetworkConditionsParamsBuilder
impl UnsafeUnpin for EmulateNetworkConditionsParamsBuilder
impl UnwindSafe for EmulateNetworkConditionsParamsBuilder
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