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]pub 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]pub fn default() -> AllowAllSubscriptionFilter
[src]
impl TopicSubscriptionFilter for AllowAllSubscriptionFilter
[src]
impl TopicSubscriptionFilter for AllowAllSubscriptionFilter
[src]pub fn can_subscribe(&mut self, &TopicHash) -> bool
[src]
pub fn filter_incoming_subscriptions(
&mut self,
subscriptions: &'a [GossipsubSubscription],
currently_subscribed_topics: &BTreeSet<TopicHash>
) -> Result<HashSet<&'a GossipsubSubscription, RandomState>, String>
[src]
&mut self,
subscriptions: &'a [GossipsubSubscription],
currently_subscribed_topics: &BTreeSet<TopicHash>
) -> Result<HashSet<&'a GossipsubSubscription, RandomState>, String>
pub fn filter_incoming_subscription_set(
&mut self,
subscriptions: HashSet<&'a GossipsubSubscription, RandomState>,
_currently_subscribed_topics: &BTreeSet<TopicHash>
) -> Result<HashSet<&'a GossipsubSubscription, RandomState>, String>
[src]
&mut self,
subscriptions: HashSet<&'a GossipsubSubscription, RandomState>,
_currently_subscribed_topics: &BTreeSet<TopicHash>
) -> Result<HashSet<&'a GossipsubSubscription, RandomState>, String>
pub fn allow_incoming_subscription(
&mut self,
subscription: &GossipsubSubscription
) -> bool
[src]
&mut self,
subscription: &GossipsubSubscription
) -> bool