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
All
Try open all protocol
Single(ProtocolId)
Tuple Fields
0: ProtocolIdTry open one protocol
Filter(Box<dyn Fn(&ProtocolId) + Send + 'static, Global>)
Tuple Fields
0: Box<dyn Fn(&ProtocolId) + Send + 'static, Global>Try open some protocol, if return true, open it
Trait Implementations
Performs the conversion.
Performs the conversion.
