pub trait Connection<In, Out>: ConnectionCommon<In, Out> {
// Required method
fn open(
&self,
) -> impl Future<Output = Result<(Self::SendSink, Self::RecvStream), Self::OpenError>> + Send;
}
Expand description
A connection to a specific remote machine
A connection can be used to open bidirectional typed channels using Connection::open
.
Required Methods§
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.