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]pub fn can_subscribe(&mut self, topic_hash: &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
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,