Struct libp2p_gossipsub::subscription_filter::CallbackSubscriptionFilter [−][src]
Trait Implementations
impl<T> TopicSubscriptionFilter for CallbackSubscriptionFilter<T> where
T: FnMut(&TopicHash) -> bool,
[src]
impl<T> TopicSubscriptionFilter for CallbackSubscriptionFilter<T> where
T: FnMut(&TopicHash) -> bool,
[src]fn can_subscribe(&mut self, topic_hash: &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
Auto Trait Implementations
impl<T> RefUnwindSafe for CallbackSubscriptionFilter<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for CallbackSubscriptionFilter<T> where
T: Send,
T: Send,
impl<T> Sync for CallbackSubscriptionFilter<T> where
T: Sync,
T: Sync,
impl<T> Unpin for CallbackSubscriptionFilter<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for CallbackSubscriptionFilter<T> where
T: UnwindSafe,
T: UnwindSafe,