pub struct Connection(/* private fields */);Expand description
Connection with a specific remote Member, that is used on Rust side.
Implementations§
Source§impl Connection
impl Connection
Sourcepub fn new(
remote_id: MemberId,
room_recv_constraints: &Rc<RecvConstraints>,
) -> Self
pub fn new( remote_id: MemberId, room_recv_constraints: &Rc<RecvConstraints>, ) -> Self
Instantiates a new Connection for the given Member.
Based on the provided RecvConstraints individual RecvConstraints
of this Connection will automatically synchronize.
Sourcepub fn add_receiver(&self, receiver: Rc<State>)
pub fn add_receiver(&self, receiver: Rc<State>)
Stores provided receiver::State in this Connection.
Updates MediaExchangeState of the provided receiver::State based
on the current individual RecvConstraints of this Connection.
Sourcepub fn add_remote_track(&self, track: Track)
pub fn add_remote_track(&self, track: Track)
Invokes on_remote_track_added callback with the provided
remote::Track.
Sourcepub fn new_handle(&self) -> ConnectionHandle
pub fn new_handle(&self) -> ConnectionHandle
Creates a new external handle to this Connection.
Sourcepub fn update_quality_score(&self, score: ConnectionQualityScore)
pub fn update_quality_score(&self, score: ConnectionQualityScore)
Updates the ConnectionQualityScore of this Connection.
Sourcepub fn update_peer_state(&self, state: PeerConnectionState)
pub fn update_peer_state(&self, state: PeerConnectionState)
Updates the PeerConnectionState of this Connection.
Trait Implementations§
Source§impl Clone for Connection
impl Clone for Connection
Source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Connection
impl !RefUnwindSafe for Connection
impl !Send for Connection
impl !Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
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