diff --git a/transport/src/lib.rs b/transport/src/lib.rs index fdb5bfc..5409bbc 100644 --- a/transport/src/lib.rs +++ b/transport/src/lib.rs @@ -16,12 +16,6 @@ pub trait Connection { type SendStream: SendStream; /// The type produced by `poll_accept_recv()` type RecvStream: RecvStream; - /// A producer of outgoing Unidirectional and Bidirectional streams. - type OpenStreams: OpenStreams< - SendStream = Self::SendStream, - RecvStream = Self::RecvStream, - BidiStream = Self::BidiStream, - >; /// Accept an incoming unidirectional stream /// @@ -51,9 +45,6 @@ pub trait Connection { cx: &mut task::Context<'_>, ) -> Poll>; - /// Get an object to open outgoing streams. - fn opener(&self) -> Self::OpenStreams; - /// Close the connection immediately fn close(&mut self, code: ErrorCode, reason: &[u8]); }