pub enum Audience<P: PeerId> {
Granted,
Peers(Watchable<BTreeSet<P>>),
}Expand description
Who may see a publication.
Variants§
Granted
Every session whose grant covers the path, media relays included.
Peers(Watchable<BTreeSet<P>>)
These peers, as the set changes.
Never offered to media relays. The publication holds the set: change it through a clone of the watchable.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for Audience<P>
impl<P> RefUnwindSafe for Audience<P>
impl<P> Send for Audience<P>
impl<P> Sync for Audience<P>
impl<P> Unpin for Audience<P>
impl<P> UnsafeUnpin for Audience<P>
impl<P> UnwindSafe for Audience<P>
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