File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff 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 ) ]
199200pub struct StartHandshake < IO > {
200- accepted : rustls:: server:: Accepted ,
201- io : IO ,
201+ pub accepted : rustls:: server:: Accepted ,
202+ pub io : IO ,
202203}
203204
204205impl < 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 }
You can’t perform that action at this time.
0 commit comments