#[non_exhaustive]pub enum TracksEvent {
#[non_exhaustive] Added {
name: Arc<str>,
info: Listed,
},
Synced,
#[non_exhaustive] Removed {
kind: Kind,
name: Arc<str>,
},
#[non_exhaustive] Finished {
kind: Kind,
name: Arc<str>,
},
}Expand description
What a Tracks listing reports, in order.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
#[non_exhaustive]Added
A track the broadcast lists, with its kind and fixed properties.
Fields
This variant is marked as non-exhaustive
Synced
Every track this hop listed once its listing was complete, and still lists, has been
reported: at once without a Lister, else once it synced, as a
relay’s copy does on its moq-lite upstream’s SYNCED. A copy of a moq-transport upstream
syncs at once with the tracks this hop already knows, since that upstream never signals a
complete list. Sent once; later events are live.
#[non_exhaustive]Removed
A track is no longer listed, unfinished: its producer dropped or aborted before declaring its end, or the route or handler that listed it withdrew. A handler may still serve its name on request.
Fields
This variant is marked as non-exhaustive
kind: KindThe kind an earlier Self::Added reported.
name: Arc<str>The name an earlier Self::Added reported.
#[non_exhaustive]Finished
A track is no longer listed because it finished: its producer declared its end. A track of groups stays readable while the cache retains its groups.
Fields
This variant is marked as non-exhaustive
kind: KindThe kind an earlier Self::Added reported.
name: Arc<str>The name an earlier Self::Added reported.