Struct webrtc_util::conn::conn_bridge::Bridge
source · pub struct Bridge { /* private fields */ }
Expand description
Bridge represents a network between the two endpoints.
Implementations§
source§impl 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 fn drop_next_nwrites(&self, id: usize, n: usize)
pub 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 fn reorder_next_nwrites(&self, id: usize, n: usize)
pub 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 !Freeze for Bridge
impl !RefUnwindSafe for Bridge
impl Send for Bridge
impl Sync for Bridge
impl Unpin for Bridge
impl !UnwindSafe for Bridge
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