remove opener from connection, currently unused
This commit is contained in:
parent
31bd538481
commit
17b96ff51b
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue