Enum ckb_network::TargetProtocol [−][src]
pub enum TargetProtocol {
All,
Single(ProtocolId),
Filter(Box<dyn Fn(&ProtocolId) + Send + 'static, Global>),
}Expand description
When dial, specify which protocol want to open
Variants
Try open all protocol
Single(ProtocolId)Try open one protocol
Tuple Fields of Single
0: ProtocolIdFilter(Box<dyn Fn(&ProtocolId) + Send + 'static, Global>)Try open some protocol, if return true, open it
Tuple Fields of Filter
0: Box<dyn Fn(&ProtocolId) + Send + 'static, Global>Trait Implementations
Performs the conversion.
Performs the conversion.