Enum ckb_network::TargetProtocol
source · [−]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
All
Try open all protocol
Single(ProtocolId)
Try open one protocol
Filter(Box<dyn Fn(&ProtocolId) + Send + 'static, Global>)
Try open some protocol, if return true, open it
Trait Implementations
Performs the conversion.
Performs the conversion.