From 17b96ff51ba00bb3a18954033a0f153edb767dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Michel?= Date: Mon, 10 Jul 2023 13:17:09 +0000 Subject: [PATCH] remove opener from connection, currently unused --- transport/src/lib.rs | 9 --------- 1 file changed, 9 deletions(-) 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]); }