Skip to main content

Connector

Type Alias Connector 

Source
pub type Connector = Rc<dyn Fn() -> LocalBoxFuture<'static, Result<H2Connection, Status>>>;
Expand description

Opens a tunnel on demand. The client holds one so it can redial, which is what makes it a gRPC channel rather than a handle to a socket.

Aliased Typeยง

pub struct Connector { /* private fields */ }