hang/catalog/echo.rs
1use serde::{Deserialize, Serialize};
2
3/// The relative broadcast prefix under which viewers may publish feedback.
4#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
5#[non_exhaustive]
6pub struct Echo {
7 /// The feedback prefix relative to the broadcast serving this catalog.
8 pub path: moq_net::path::Relative,
9}
10
11impl Echo {
12 /// Solicit feedback under a prefix relative to the catalog's broadcast.
13 pub fn new(path: impl Into<moq_net::path::Relative>) -> Self {
14 Self { path: path.into() }
15 }
16}