pub trait HostConnectionBuilder: Send {
// Required methods
fn new(
&mut self,
address: String,
) -> impl Future<Output = Result<Resource<ConnectionBuilder>>> + Send;
fn set_ca_root(
&mut self,
self_: Resource<ConnectionBuilder>,
certificate: String,
) -> impl Future<Output = Result<(), Error>> + Send;
fn build(
&mut self,
self_: Resource<ConnectionBuilder>,
) -> impl Future<Output = Result<Resource<Connection>, Error>> + Send;
fn drop(
&mut self,
rep: Resource<ConnectionBuilder>,
) -> impl Future<Output = Result<()>> + Send;
}Required Methods§
fn new( &mut self, address: String, ) -> impl Future<Output = Result<Resource<ConnectionBuilder>>> + Send
fn set_ca_root( &mut self, self_: Resource<ConnectionBuilder>, certificate: String, ) -> impl Future<Output = Result<(), Error>> + Send
fn build( &mut self, self_: Resource<ConnectionBuilder>, ) -> impl Future<Output = Result<Resource<Connection>, Error>> + Send
fn drop( &mut self, rep: Resource<ConnectionBuilder>, ) -> impl Future<Output = Result<()>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.