pub struct TrackIn {
pub origin: ClientId,
pub mid: Mid,
pub kind: MediaKind,
pub relay_source: bool,
}Expand description
An incoming track advertised by a client.
The originating client owns the strong Arc; every other client that
subscribes holds a Weak. When the publisher disconnects the Arc drops
and all subscriber Weaks become invalid.
Fields§
§origin: ClientIdThe peer that is publishing this track.
mid: Midstr0m media identifier.
kind: MediaKindAudio or video.
relay_source: booltrue if the publishing client is a relay from another SFU edge.
Set at track-open time from the publisher’s is_relay() status.
Used by the subscriber’s keyframe-request path to emit
Propagated::UpstreamKeyframeRequest (added in relay-rerouting task)
instead of a direct PLI/FIR.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrackIn
impl RefUnwindSafe for TrackIn
impl Send for TrackIn
impl Sync for TrackIn
impl Unpin for TrackIn
impl UnsafeUnpin for TrackIn
impl UnwindSafe for TrackIn
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