pub enum PeerUpdate {
Added(Track),
Removed(TrackId),
Updated(TrackPatchEvent),
IceRestart,
}
Expand description
Track
update which should be applied to the Peer
.
Variants§
Added(Track)
New Track
should be added to the Peer
.
Removed(TrackId)
Track
with the provided TrackId
should be removed from the
Peer
.
Can only refer Track
s already known to the Peer
.
Updated(TrackPatchEvent)
Track
should be updated by this TrackPatchEvent
in the Peer
.
Can only refer tracks already known to the Peer
.
IceRestart
Peer
should start ICE restart process on the next renegotiation.
Trait Implementations§
Source§impl Clone for PeerUpdate
impl Clone for PeerUpdate
Source§fn clone(&self) -> PeerUpdate
fn clone(&self) -> PeerUpdate
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 moreSource§impl Debug for PeerUpdate
impl Debug for PeerUpdate
Source§impl<'de> Deserialize<'de> for PeerUpdate
impl<'de> Deserialize<'de> for PeerUpdate
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PeerUpdate
impl PartialEq for PeerUpdate
Source§impl Serialize for PeerUpdate
impl Serialize for PeerUpdate
impl Eq for PeerUpdate
impl StructuralPartialEq for PeerUpdate
Auto Trait Implementations§
impl Freeze for PeerUpdate
impl RefUnwindSafe for PeerUpdate
impl Send for PeerUpdate
impl Sync for PeerUpdate
impl Unpin for PeerUpdate
impl UnwindSafe for PeerUpdate
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