Debian Codegraph @

src/server.rs

raw symbols SCIP
1 //! The server end of a TLS connection.
2
3 use craterust-analyzer cargo async-tls 0.13.0 crate/::commonrust-analyzer cargo async-tls 0.13.0 common/::tls_staterust-analyzer cargo async-tls 0.13.0 common/tls_state/::TlsStaterust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState#;
4 use craterust-analyzer cargo async-tls 0.13.0 crate/::rusttlsrust-analyzer cargo async-tls 0.13.0 rusttls/::streamrust-analyzer cargo async-tls 0.13.0 rusttls/stream/::Streamrust-analyzer cargo async-tls 0.13.0 rusttls/stream/Stream#;
5
6 use futures_corerust-analyzer cargo futures-core 0.3.34 crate/::readyrust-analyzer cargo futures-core 0.3.34 task/poll/ready!;
7 use futures_iorust-analyzer cargo futures-io 0.3.34 crate/::{AsyncReadrust-analyzer cargo futures-io 0.3.34 if_std/AsyncRead#, AsyncWriterust-analyzer cargo futures-io 0.3.34 if_std/AsyncWrite#};
8 use rustlsrust-analyzer cargo rustls 0.23.43 crate/::ServerConnectionrust-analyzer cargo rustls 0.23.43 server/server_conn/connection/ServerConnection#;
9 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::futurerust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/::Futurerust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#;
10 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/::Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#;
11 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::taskrust-analyzer cargo std https://github.com/rust-lang/rust/library/std task/::{Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#, Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#};
12 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::{iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/, memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/};
13
14 /// The server end of a TLS connection. Can be used like any other bidirectional IO stream.
15 /// Wraps the underlying TCP stream.
16 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)]
17 pub struct TlsStreamrust-analyzer cargo async-tls 0.13.0 server/TlsStream#<IO> {
18 pub(craterust-analyzer cargo async-tls 0.13.0 crate/) iorust-analyzer cargo async-tls 0.13.0 server/TlsStream#io.: IO,
19 pub(craterust-analyzer cargo async-tls 0.13.0 crate/) connrust-analyzer cargo async-tls 0.13.0 server/TlsStream#conn.: ServerConnectionrust-analyzer cargo rustls 0.23.43 server/server_conn/connection/ServerConnection#,
20 pub(craterust-analyzer cargo async-tls 0.13.0 crate/) staterust-analyzer cargo async-tls 0.13.0 server/TlsStream#state.: TlsStaterust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState#,
21 }
22
23 pub(craterust-analyzer cargo async-tls 0.13.0 crate/) enum MidHandshakerust-analyzer cargo async-tls 0.13.0 server/MidHandshake#<IO> {
24 Handshakingrust-analyzer cargo async-tls 0.13.0 server/MidHandshake#Handshaking#(TlsStreamrust-analyzer cargo async-tls 0.13.0 server/TlsStream#<IO>),
25 Endrust-analyzer cargo async-tls 0.13.0 server/MidHandshake#End#,
26 }
27
28 impl<IO> Futurerust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future# for MidHandshakerust-analyzer cargo async-tls 0.13.0 server/MidHandshake#<IO>
29 where
30 IO: AsyncReadrust-analyzer cargo futures-io 0.3.34 if_std/AsyncRead# + AsyncWriterust-analyzer cargo futures-io 0.3.34 if_std/AsyncWrite# + Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin#,
31 {
32 type Outputrust-analyzer cargo async-tls 0.13.0 server/impl#[`MidHandshake<IO>`][Future]Output# = iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Resultrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Result#<TlsStreamrust-analyzer cargo async-tls 0.13.0 server/TlsStream#<IO>>;
33
34 #[inline]
35 fn pollrust-analyzer cargo async-tls 0.13.0 server/impl#[`MidHandshake<IO>`][Future]poll().(self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo async-tls 0.13.0 server/impl#[`MidHandshake<IO>`][Future]>, cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#<'_>) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<Selfrust-analyzer cargo async-tls 0.13.0 server/impl#[`MidHandshake<IO>`][Future]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#Output#> {
36 let this = self.get_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<&'a mut T>`]get_mut().();
37
38 if let MidHandshakerust-analyzer cargo async-tls 0.13.0 server/MidHandshake#::Handshakingrust-analyzer cargo async-tls 0.13.0 server/MidHandshake#Handshaking#(stream) = this {
39 let eof = !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().stream.staterust-analyzer cargo async-tls 0.13.0 server/TlsStream#state..readablerust-analyzer cargo async-tls 0.13.0 common/tls_state/impl#[TlsState]readable().();
40 let (io, session) = (&mut stream.iorust-analyzer cargo async-tls 0.13.0 server/TlsStream#io., &mut stream.connrust-analyzer cargo async-tls 0.13.0 server/TlsStream#conn.);
41 let mut stream = Streamrust-analyzer cargo async-tls 0.13.0 rusttls/stream/Stream#::newrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`]new().(io, session).set_eofrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`]set_eof().(eof);
42
43 if stream.connrust-analyzer cargo async-tls 0.13.0 rusttls/stream/Stream#conn..is_handshakingrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Conn<'_>`]is_handshaking().() {
44 readyrust-analyzer cargo futures-core 0.3.34 task/poll/ready!!(stream.complete_iorust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`]complete_io().(cx))?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
45 }
46
47 if stream.connrust-analyzer cargo async-tls 0.13.0 rusttls/stream/Stream#conn..wants_writerust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Conn<'_>`]wants_write().() {
48 readyrust-analyzer cargo futures-core 0.3.34 task/poll/ready!!(stream.complete_iorust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`]complete_io().(cx))?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
49 }
50 }
51
52 match memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::replacerust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/replace().(this, MidHandshakerust-analyzer cargo async-tls 0.13.0 server/MidHandshake#::Endrust-analyzer cargo async-tls 0.13.0 server/MidHandshake#End#) {
53 MidHandshakerust-analyzer cargo async-tls 0.13.0 server/MidHandshake#::Handshakingrust-analyzer cargo async-tls 0.13.0 server/MidHandshake#Handshaking#(stream) => Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#::Readyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#Ready#(Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(stream)),
54 MidHandshakerust-analyzer cargo async-tls 0.13.0 server/MidHandshake#::Endrust-analyzer cargo async-tls 0.13.0 server/MidHandshake#End# => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!(),
55 }
56 }
57 }
58
59 impl<IO> AsyncReadrust-analyzer cargo futures-io 0.3.34 if_std/AsyncRead# for TlsStreamrust-analyzer cargo async-tls 0.13.0 server/TlsStream#<IO>
60 where
61 IO: AsyncReadrust-analyzer cargo futures-io 0.3.34 if_std/AsyncRead# + AsyncWriterust-analyzer cargo futures-io 0.3.34 if_std/AsyncWrite# + Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin#,
62 {
63 fn poll_readrust-analyzer cargo async-tls 0.13.0 server/impl#[`TlsStream<IO>`][AsyncRead]poll_read().(
64 self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo async-tls 0.13.0 server/impl#[`TlsStream<IO>`][AsyncRead]>,
65 cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#<'_>,
66 buf: &mut [u8],
67 ) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Resultrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Result#<usize>> {
68 let this = self.get_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<&'a mut T>`]get_mut().();
69 let mut stream = Streamrust-analyzer cargo async-tls 0.13.0 rusttls/stream/Stream#::newrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`]new().(&mut this.iorust-analyzer cargo async-tls 0.13.0 server/TlsStream#io., &mut this.connrust-analyzer cargo async-tls 0.13.0 server/TlsStream#conn.).set_eofrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`]set_eof().(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().this.staterust-analyzer cargo async-tls 0.13.0 server/TlsStream#state..readablerust-analyzer cargo async-tls 0.13.0 common/tls_state/impl#[TlsState]readable().());
70
71 match this.staterust-analyzer cargo async-tls 0.13.0 server/TlsStream#state. {
72 TlsStaterust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState#::Streamrust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState#Stream# | TlsStaterust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState#::WriteShutdownrust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState#WriteShutdown# => {
73 match stream.as_mut_pinrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`]as_mut_pin().().poll_readrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`][AsyncRead]poll_read().(cx, buf) {
74 Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#::Readyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#Ready#(Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(0)) => {
75 this.staterust-analyzer cargo async-tls 0.13.0 server/TlsStream#state..shutdown_readrust-analyzer cargo async-tls 0.13.0 common/tls_state/impl#[TlsState]shutdown_read().();
76 Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#::Readyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#Ready#(Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(0))
77 }
78 Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#::Readyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#Ready#(Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(n)) => Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#::Readyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#Ready#(Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(n)),
79 Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#::Readyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#Ready#(Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(ref err)) if err.kindrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[Error]kind().() rust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[ErrorKind][`PartialEq<Self>`]eq().==rust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[ErrorKind][`PartialEq<Self>`]eq(). rust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/impl#[ErrorKind][`PartialEq<Self>`]eq().iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::ErrorKindrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/ErrorKind#::ConnectionAbortedrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/ErrorKind#ConnectionAborted# => {
80 this.staterust-analyzer cargo async-tls 0.13.0 server/TlsStream#state..shutdown_readrust-analyzer cargo async-tls 0.13.0 common/tls_state/impl#[TlsState]shutdown_read().();
81 if this.staterust-analyzer cargo async-tls 0.13.0 server/TlsStream#state..writeablerust-analyzer cargo async-tls 0.13.0 common/tls_state/impl#[TlsState]writeable().() {
82 stream.connrust-analyzer cargo async-tls 0.13.0 rusttls/stream/Stream#conn..send_close_notifyrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Conn<'_>`]send_close_notify().();
83 this.staterust-analyzer cargo async-tls 0.13.0 server/TlsStream#state..shutdown_writerust-analyzer cargo async-tls 0.13.0 common/tls_state/impl#[TlsState]shutdown_write().();
84 }
85 Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#::Readyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#Ready#(Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(0))
86 }
87 Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#::Readyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#Ready#(Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(e)) => Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#::Readyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#Ready#(Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(e)),
88 Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#::Pendingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#Pending# => Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#::Pendingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#Pending#,
89 }
90 }
91 TlsStaterust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState#::ReadShutdownrust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState#ReadShutdown# | TlsStaterust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState#::FullyShutdownrust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState#FullyShutdown# => Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#::Readyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#Ready#(Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(0)),
92 #[cfg(feature = "early-data")]
93 s => unreachablerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/unreachable!!("server TLS can not hit this state: {:?}", s),
94 }
95 }
96 }
97
98 impl<IO> AsyncWriterust-analyzer cargo futures-io 0.3.34 if_std/AsyncWrite# for TlsStreamrust-analyzer cargo async-tls 0.13.0 server/TlsStream#<IO>
99 where
100 IO: AsyncReadrust-analyzer cargo futures-io 0.3.34 if_std/AsyncRead# + AsyncWriterust-analyzer cargo futures-io 0.3.34 if_std/AsyncWrite# + Unpinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Unpin#,
101 {
102 fn poll_writerust-analyzer cargo async-tls 0.13.0 server/impl#[`TlsStream<IO>`][AsyncWrite]poll_write().(
103 self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo async-tls 0.13.0 server/impl#[`TlsStream<IO>`][AsyncWrite]>,
104 cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#<'_>,
105 buf: &[u8],
106 ) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Resultrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Result#<usize>> {
107 let this = self.get_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<&'a mut T>`]get_mut().();
108 let mut stream = Streamrust-analyzer cargo async-tls 0.13.0 rusttls/stream/Stream#::newrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`]new().(&mut this.iorust-analyzer cargo async-tls 0.13.0 server/TlsStream#io., &mut this.connrust-analyzer cargo async-tls 0.13.0 server/TlsStream#conn.).set_eofrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`]set_eof().(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().this.staterust-analyzer cargo async-tls 0.13.0 server/TlsStream#state..readablerust-analyzer cargo async-tls 0.13.0 common/tls_state/impl#[TlsState]readable().());
109 stream.as_mut_pinrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`]as_mut_pin().().poll_writerust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`][AsyncWrite]poll_write().(cx, buf)
110 }
111
112 fn poll_flushrust-analyzer cargo async-tls 0.13.0 server/impl#[`TlsStream<IO>`][AsyncWrite]poll_flush().(self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo async-tls 0.13.0 server/impl#[`TlsStream<IO>`][AsyncWrite]>, cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#<'_>) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Resultrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Result#<()>> {
113 let this = self.get_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<&'a mut T>`]get_mut().();
114 let mut stream = Streamrust-analyzer cargo async-tls 0.13.0 rusttls/stream/Stream#::newrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`]new().(&mut this.iorust-analyzer cargo async-tls 0.13.0 server/TlsStream#io., &mut this.connrust-analyzer cargo async-tls 0.13.0 server/TlsStream#conn.).set_eofrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`]set_eof().(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().this.staterust-analyzer cargo async-tls 0.13.0 server/TlsStream#state..readablerust-analyzer cargo async-tls 0.13.0 common/tls_state/impl#[TlsState]readable().());
115 stream.as_mut_pinrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`]as_mut_pin().().poll_flushrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`][AsyncWrite]poll_flush().(cx)
116 }
117
118 fn poll_closerust-analyzer cargo async-tls 0.13.0 server/impl#[`TlsStream<IO>`][AsyncWrite]poll_close().(mut self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut Selfrust-analyzer cargo async-tls 0.13.0 server/impl#[`TlsStream<IO>`][AsyncWrite]>, cx: &mut Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#<'_>) -> Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#<iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Resultrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Result#<()>> {
119 if self.staterust-analyzer cargo async-tls 0.13.0 server/TlsStream#state..writeablerust-analyzer cargo async-tls 0.13.0 common/tls_state/impl#[TlsState]writeable().() {
120 self.connrust-analyzer cargo async-tls 0.13.0 server/TlsStream#conn..send_close_notifyrust-analyzer cargo rustls 0.23.43 common_state/impl#[CommonState]send_close_notify().();
121 self.staterust-analyzer cargo async-tls 0.13.0 server/TlsStream#state..shutdown_writerust-analyzer cargo async-tls 0.13.0 common/tls_state/impl#[TlsState]shutdown_write().();
122 }
123
124 let this = self.get_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<&'a mut T>`]get_mut().();
125 let mut stream = Streamrust-analyzer cargo async-tls 0.13.0 rusttls/stream/Stream#::newrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`]new().(&mut this.iorust-analyzer cargo async-tls 0.13.0 server/TlsStream#io., &mut this.connrust-analyzer cargo async-tls 0.13.0 server/TlsStream#conn.).set_eofrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`]set_eof().(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().this.staterust-analyzer cargo async-tls 0.13.0 server/TlsStream#state..readablerust-analyzer cargo async-tls 0.13.0 common/tls_state/impl#[TlsState]readable().());
126 stream.as_mut_pinrust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`]as_mut_pin().().poll_closerust-analyzer cargo async-tls 0.13.0 rusttls/stream/impl#[`Stream<'a, IO>`][AsyncWrite]poll_close().(cx)
127 }
128 }