pub enum Viewer<'a, P: PeerId> {
Direct(&'a P),
Relay,
}Expand description
The link that visible_paths works out the visible publications for.
Variants§
Direct(&'a P)
A session with this peer, dialed or accepted.
Relay
A media relay, which gets the Audience::Granted publications.
Trait Implementations§
Auto Trait Implementations§
impl<'a, P> Freeze for Viewer<'a, P>
impl<'a, P> RefUnwindSafe for Viewer<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for Viewer<'a, P>
impl<'a, P> Sync for Viewer<'a, P>
impl<'a, P> Unpin for Viewer<'a, P>
impl<'a, P> UnsafeUnpin for Viewer<'a, P>
impl<'a, P> UnwindSafe for Viewer<'a, P>where
P: RefUnwindSafe,
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