remove opener from connection, currently unused

This commit is contained in:
François Michel 2023-07-10 13:17:09 +00:00
parent 31bd538481
commit 17b96ff51b
1 changed files with 0 additions and 9 deletions

View File

@ -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<Result<Self::SendStream, Error>>;
/// Get an object to open outgoing streams.
fn opener(&self) -> Self::OpenStreams;
/// Close the connection immediately
fn close(&mut self, code: ErrorCode, reason: &[u8]);
}