pub enum AudienceKind<P: PeerId> {
Granted,
Peers(BTreeSet<P>),
}Expand description
An Audience as a registry keeps it: the current set, not its watcher.
Variants§
Trait Implementations§
impl<P: Eq + PeerId> Eq for AudienceKind<P>
impl<P: PartialEq + PeerId> StructuralPartialEq for AudienceKind<P>
Auto Trait Implementations§
impl<P> Freeze for AudienceKind<P>
impl<P> RefUnwindSafe for AudienceKind<P>where
P: RefUnwindSafe,
impl<P> Send for AudienceKind<P>
impl<P> Sync for AudienceKind<P>
impl<P> Unpin for AudienceKind<P>
impl<P> UnsafeUnpin for AudienceKind<P>
impl<P> UnwindSafe for AudienceKind<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.