Struct webrtc_util::conn::conn_bridge::Bridge [−][src]
pub struct Bridge { /* fields omitted */ }
Expand description
Bridge represents a network between the two endpoints.
Implementations
pub fn new(
loss_chance: u8,
filter_cb0: Option<Box<dyn Fn(&Bytes) -> bool + Send + Sync>>,
filter_cb1: Option<Box<dyn Fn(&Bytes) -> bool + Send + Sync>>
) -> (Arc<Bridge>, impl Conn, impl Conn)
Reorder inverses the order of packets currently in the specified queue.
Drop drops the specified number of packets from the given offset index of the specified queue.
drop_next_nwrites drops the next n packets that will be written to the specified queue.
reorder_next_nwrites drops the next n packets that will be written to the specified queue.
Tick attempts to hand a packet from the queue for each directions, to readers, if there are waiting on the queue. If there’s no reader, it will return immediately.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Bridge
impl !UnwindSafe for Bridge