pub struct TrackPatchEvent {
pub id: TrackId,
pub media_direction: Option<MediaDirection>,
pub receivers: Option<Vec<MemberId>>,
pub muted: Option<bool>,
pub encoding_parameters: Option<Vec<EncodingParameters>>,
}Expand description
Patch of a Track which Media Server can send with an
Event::PeerUpdated.
Fields§
§id: TrackIdID of the Track which should be patched.
media_direction: Option<MediaDirection>General media exchange direction of the Track.
receivers: Option<Vec<MemberId>>IDs of the Members who should receive this outgoing Track.
If Some, then it means there are some changes in this outgoing
Track’s receivers (or we just want to sync this outgoing
Track’s receivers). It describes not changes, but the actual
Vec<MemberId> of this outgoing Track, that have to be reached
once this TrackPatchEvent applied.
If None, then it means there is no need to check and recalculate
this outgoing Track’s receivers.
muted: Option<bool>Track’s mute state.
Muting and unmuting can be performed without adding/removing tracks from transceivers, hence renegotiation is not required.
encoding_parameters: Option<Vec<EncodingParameters>>EncodingParameters for the Track which should be patched.
Implementations§
Source§impl TrackPatchEvent
impl TrackPatchEvent
Sourcepub const fn new(id: TrackId) -> Self
pub const fn new(id: TrackId) -> Self
Returns a new empty TrackPatchEvent with the provided TrackId.
Sourcepub fn merge(&mut self, another: &Self)
pub fn merge(&mut self, another: &Self)
Merges this TrackPatchEvent with the provided one.
Does nothing if TrackId of this TrackPatchEvent and the
provided TrackPatchEvent are different.
Trait Implementations§
Source§impl Clone for TrackPatchEvent
impl Clone for TrackPatchEvent
Source§fn clone(&self) -> TrackPatchEvent
fn clone(&self) -> TrackPatchEvent
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TrackPatchEvent
impl Debug for TrackPatchEvent
Source§impl<'de> Deserialize<'de> for TrackPatchEvent
impl<'de> Deserialize<'de> for TrackPatchEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<TrackPatchCommand> for TrackPatchEvent
impl From<TrackPatchCommand> for TrackPatchEvent
Source§fn from(from: TrackPatchCommand) -> Self
fn from(from: TrackPatchCommand) -> Self
Source§impl PartialEq for TrackPatchEvent
impl PartialEq for TrackPatchEvent
Source§impl Serialize for TrackPatchEvent
impl Serialize for TrackPatchEvent
impl Eq for TrackPatchEvent
impl StructuralPartialEq for TrackPatchEvent
Auto Trait Implementations§
impl Freeze for TrackPatchEvent
impl RefUnwindSafe for TrackPatchEvent
impl Send for TrackPatchEvent
impl Sync for TrackPatchEvent
impl Unpin for TrackPatchEvent
impl UnwindSafe for TrackPatchEvent
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)