Function tor_circmgr::mgr::abstract_spec_find_supported
source ยท pub(crate) fn abstract_spec_find_supported<'a, 'b, S: AbstractSpec, C: AbstractCirc>(
list: impl Iterator<Item = &'b mut OpenEntry<S, C>>,
usage: &S::Usage
) -> Vec<&'b mut OpenEntry<S, C>>
Expand description
Default implementation of AbstractSpec::find_supported
; provided as a separate function
so it can be used in overridden implementations.
This returns the all circuits in list
for which circuit.spec.supports(usage)
returns
true
.