pub trait Connect {
type Proxy: Proxy;
// Required method
fn connect(&self) -> Result<Self::Proxy, Error>;
}
Expand description
A trait that manages connecting to service.
pub trait Connect {
type Proxy: Proxy;
// Required method
fn connect(&self) -> Result<Self::Proxy, Error>;
}
A trait that manages connecting to service.