pub struct TrackForwardingPreferences {
tracks: Vec<TrackPreference>,
}Expand description
The preference each track’s objects have been framed as, so far.
A session holds a handful of tracks and this is scanned once per data stream and once per datagram, which is why it is a list rather than a map — the same shape, and for the same reason, as the endpoint’s own table of track aliases.
Fields§
§tracks: Vec<TrackPreference>Implementations§
Source§impl TrackForwardingPreferences
impl TrackForwardingPreferences
Sourcepub fn observe(
&mut self,
namespace: &TrackNamespace,
name: &[u8],
seen: ObjectForwardingPreference,
) -> Result<(), ObjectForwardingPreference>
pub fn observe( &mut self, namespace: &TrackNamespace, name: &[u8], seen: ObjectForwardingPreference, ) -> Result<(), ObjectForwardingPreference>
Record that a track’s object was framed as seen.
Ok when the track had settled on seen already or had settled on
nothing. Err carries the preference the track did settle on, which is
the half of the report that says what the rule was broken against.
Trait Implementations§
Source§impl Default for TrackForwardingPreferences
impl Default for TrackForwardingPreferences
Source§fn default() -> TrackForwardingPreferences
fn default() -> TrackForwardingPreferences
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TrackForwardingPreferences
impl RefUnwindSafe for TrackForwardingPreferences
impl Send for TrackForwardingPreferences
impl Sync for TrackForwardingPreferences
impl Unpin for TrackForwardingPreferences
impl UnsafeUnpin for TrackForwardingPreferences
impl UnwindSafe for TrackForwardingPreferences
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