Struct libp2p_gossipsub::subscription_filter::AllowAllSubscriptionFilter [−][src]
pub struct AllowAllSubscriptionFilter {}
Allows all subscriptions
Trait Implementations
impl Clone for AllowAllSubscriptionFilter
[src]
impl Clone for AllowAllSubscriptionFilter
[src]fn clone(&self) -> AllowAllSubscriptionFilter
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for AllowAllSubscriptionFilter
[src]
impl Default for AllowAllSubscriptionFilter
[src]impl TopicSubscriptionFilter for AllowAllSubscriptionFilter
[src]
impl TopicSubscriptionFilter for AllowAllSubscriptionFilter
[src]fn can_subscribe(&mut self, _: &TopicHash) -> bool
[src]
fn filter_incoming_subscriptions<'a>(
&mut self,
subscriptions: &'a [GossipsubSubscription],
currently_subscribed_topics: &BTreeSet<TopicHash>
) -> Result<HashSet<&'a GossipsubSubscription>, String>
[src]
&mut self,
subscriptions: &'a [GossipsubSubscription],
currently_subscribed_topics: &BTreeSet<TopicHash>
) -> Result<HashSet<&'a GossipsubSubscription>, String>
fn filter_incoming_subscription_set<'a>(
&mut self,
subscriptions: HashSet<&'a GossipsubSubscription>,
_currently_subscribed_topics: &BTreeSet<TopicHash>
) -> Result<HashSet<&'a GossipsubSubscription>, String>
[src]
&mut self,
subscriptions: HashSet<&'a GossipsubSubscription>,
_currently_subscribed_topics: &BTreeSet<TopicHash>
) -> Result<HashSet<&'a GossipsubSubscription>, String>
fn allow_incoming_subscription(
&mut self,
subscription: &GossipsubSubscription
) -> bool
[src]
&mut self,
subscription: &GossipsubSubscription
) -> bool