pub struct AttachedTrack {
pub id: TrackId,
pub mid: Mid,
pub kind: MediaKind,
pub endpoints: TrackEndpoints,
}Available on crate feature
webrtc only.Expand description
One newly-attached track, from WebRtcHandle::next_track.
Fields§
§id: TrackIdMatches what WebRtcHandle::add_track returned for a track this
side requested. A track the remote peer added has an id issued
here that the caller has never seen before — which is how the two
are told apart.
mid: MidThe mid str0m assigned during the SDP exchange.
kind: MediaKindAudio or video.
endpoints: TrackEndpointsWhat can actually be done with this track — see TrackEndpoints.
Auto Trait Implementations§
impl !Freeze for AttachedTrack
impl !RefUnwindSafe for AttachedTrack
impl !Sync for AttachedTrack
impl !UnwindSafe for AttachedTrack
impl Send for AttachedTrack
impl Unpin for AttachedTrack
impl UnsafeUnpin for AttachedTrack
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