Skip to main content

client_builder

Function client_builder 

Source
pub async fn client_builder<P>(
    addr: EndpointAddr,
) -> Result<IrohTransport<P>, Box<dyn Error>>
where P: Protocol,
Expand description

Dial addr and open one lane on it.

r[impl jetstream.session.compat.existing-clients] This is the pre-session shape: one lane, tag-multiplexed by whatever the caller wraps it in, and it stays conforming. Its bound is deliberately just P: Protocol — the returned lane never touches P::Error, so routing it through IrohSession, whose service side does, would narrow this signature and break callers whose protocol carries its own error type. Callers that want more than one lane ask for a session with session_builder instead.