pub struct Broadcast {
pub hops: OriginList,
}Expand description
A collection of media tracks that can be published and subscribed to.
Create via Broadcast::produce to obtain both BroadcastProducer and BroadcastConsumer pair.
Fields§
§hops: OriginListThe chain of origins the broadcast has traversed. Each relay appends its own
crate::Origin when forwarding, so the list is used for loop detection and
shortest-path preference.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Broadcast
impl RefUnwindSafe for Broadcast
impl Send for Broadcast
impl Sync for Broadcast
impl Unpin for Broadcast
impl UnsafeUnpin for Broadcast
impl UnwindSafe for Broadcast
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