Struct ckb_testkit::connector::ConnectorBuilder [−][src]
pub struct ConnectorBuilder { /* fields omitted */ }
Expand description
Connector Builder
Implementations
use super::util::find_available_port;
let p2p_port = find_available_port();
let p2p_listening_address = format!("/ip4/127.0.0.1/tcp/{}", p2p_port).parse().unwrap();
pub fn build<T>(
self,
service_handle: T,
shared: Arc<RwLock<SharedState>>
) -> Connector where
T: P2PServiceHandle + Unpin + Send + 'static,
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ConnectorBuilder
impl Send for ConnectorBuilder
impl !Sync for ConnectorBuilder
impl Unpin for ConnectorBuilder
impl !UnwindSafe for ConnectorBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more