pub struct MalformedTracks {
tracks: Vec<WithdrawnTrack>,
}Expand description
The tracks this endpoint has withdrawn from for malformation.
A list rather than a map, for the reason the forwarding-preference record beside it gives: a session holds a handful of tracks, and this is scanned only when a condition has already fired.
Fields§
§tracks: Vec<WithdrawnTrack>Implementations§
Source§impl MalformedTracks
impl MalformedTracks
Sourcepub fn note(
&mut self,
namespace: &TrackNamespace,
name: &[u8],
condition: MalformedTrackCondition,
)
pub fn note( &mut self, namespace: &TrackNamespace, name: &[u8], condition: MalformedTrackCondition, )
Record that a track has been found malformed.
The first condition is the one kept. A track that goes on being malformed after it has been withdrawn from is answered by what has already happened to it, and the condition worth reporting afterwards is the one that caused that.
Sourcepub fn condition(
&self,
namespace: &TrackNamespace,
name: &[u8],
) -> Option<MalformedTrackCondition>
pub fn condition( &self, namespace: &TrackNamespace, name: &[u8], ) -> Option<MalformedTrackCondition>
The condition a track was withdrawn for, or None for a track this
endpoint has found nothing wrong with.
Trait Implementations§
Source§impl Default for MalformedTracks
impl Default for MalformedTracks
Source§fn default() -> MalformedTracks
fn default() -> MalformedTracks
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MalformedTracks
impl RefUnwindSafe for MalformedTracks
impl Send for MalformedTracks
impl Sync for MalformedTracks
impl Unpin for MalformedTracks
impl UnsafeUnpin for MalformedTracks
impl UnwindSafe for MalformedTracks
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