Skip to content

Commit c9778d2

Browse files
committed
server: make StartHandshake fields public
1 parent a58a6e9 commit c9778d2

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/server.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,11 @@ where
195195
/// [`ClientHello`](rustls::server::ClientHello) data,
196196
/// and all the state required to continue the TLS handshake (e.g. via
197197
/// [`StartHandshake::into_stream`]).
198+
#[non_exhaustive]
198199
#[derive(Debug)]
199200
pub struct StartHandshake<IO> {
200-
accepted: rustls::server::Accepted,
201-
io: IO,
201+
pub accepted: rustls::server::Accepted,
202+
pub io: IO,
202203
}
203204

204205
impl<IO> StartHandshake<IO>
@@ -213,11 +214,6 @@ where
213214
}
214215
}
215216

216-
/// Consume this object and return the underlying components.
217-
pub fn into_parts(self) -> (IO, rustls::server::Accepted) {
218-
(self.io, self.accepted)
219-
}
220-
221217
pub fn client_hello(&self) -> rustls::server::ClientHello<'_> {
222218
self.accepted.client_hello()
223219
}

0 commit comments

Comments
 (0)