Struct ckb_network::CKBProtocol [−][src]
pub struct CKBProtocol { /* fields omitted */ }Expand description
Help to build protocol meta
Implementations
pub fn new_with_support_protocol(
support_protocol: SupportProtocols,
handler: Box<dyn CKBProtocolHandler>,
network_state: Arc<NetworkState>
) -> Self
pub fn new_with_support_protocol(
support_protocol: SupportProtocols,
handler: Box<dyn CKBProtocolHandler>,
network_state: Arc<NetworkState>
) -> Self
New with support protocol
pub fn new(
protocol_name: String,
id: ProtocolId,
versions: &[ProtocolVersion],
max_frame_length: usize,
handler: Box<dyn CKBProtocolHandler>,
network_state: Arc<NetworkState>,
flag: BlockingFlag
) -> Self
pub fn new(
protocol_name: String,
id: ProtocolId,
versions: &[ProtocolVersion],
max_frame_length: usize,
handler: Box<dyn CKBProtocolHandler>,
network_state: Arc<NetworkState>,
flag: BlockingFlag
) -> Self
New with all config
Protocol id
Protocol name
Whether support this version
Build to tentacle protocol meta
