Struct webrtc_util::conn::conn_bridge::Bridge
source · [−]pub struct Bridge { /* private fields */ }
Expand description
Bridge represents a network between the two endpoints.
Implementations
sourceimpl Bridge
impl Bridge
pub fn new(
loss_chance: u8,
filter_cb0: Option<FilterCbFn>,
filter_cb1: Option<FilterCbFn>
) -> (Arc<Bridge>, impl Conn, impl Conn)
pub async fn push(&self, b: &[u8], id: usize) -> Result<usize>
sourcepub async fn reorder(&self, id: usize) -> bool
pub async fn reorder(&self, id: usize) -> bool
Reorder inverses the order of packets currently in the specified queue.
sourcepub async fn drop_offset(&self, id: usize, offset: usize, n: usize)
pub async fn drop_offset(&self, id: usize, offset: usize, n: usize)
Drop drops the specified number of packets from the given offset index of the specified queue.
sourcepub async fn drop_next_nwrites(&self, id: usize, n: usize)
pub async fn drop_next_nwrites(&self, id: usize, n: usize)
drop_next_nwrites drops the next n packets that will be written to the specified queue.
sourcepub async fn reorder_next_nwrites(&self, id: usize, n: usize)
pub async fn reorder_next_nwrites(&self, id: usize, n: usize)
reorder_next_nwrites drops the next n packets that will be written to the specified queue.
pub async fn clear(&self)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Bridge
impl Send for Bridge
impl Sync for Bridge
impl Unpin for Bridge
impl !UnwindSafe for Bridge
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more