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