| 1 | #[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:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)] |
| 2 | pub(craterust-analyzer cargo async-tls 0.13.0 crate/) enum TlsStaterust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState# { |
| 3 | #[cfg(feature = "early-data")] |
| 4 | EarlyDatarust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState#EarlyData#, |
| 5 | Streamrust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState#Stream#, |
| 6 | ReadShutdownrust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState#ReadShutdown#, |
| 7 | WriteShutdownrust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState#WriteShutdown#, |
| 8 | FullyShutdownrust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState#FullyShutdown#, |
| 9 | } |
| 10 | |
| 11 | impl TlsStaterust-analyzer cargo async-tls 0.13.0 common/tls_state/TlsState# { |
| 12 | pub(craterust-analyzer cargo async-tls 0.13.0 crate/) fn shutdown_readrust-analyzer cargo async-tls 0.13.0 common/tls_state/impl#[TlsState]shutdown_read().(&mut self) { |
| 13 | match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self { |
| 14 | 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# | 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# => *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = 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#, |
| 15 | _ => *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = 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#, |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | pub(craterust-analyzer cargo async-tls 0.13.0 crate/) fn shutdown_writerust-analyzer cargo async-tls 0.13.0 common/tls_state/impl#[TlsState]shutdown_write().(&mut self) { |
| 20 | match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self { |
| 21 | 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# => *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = 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#, |
| 22 | _ => *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = 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#, |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | pub(craterust-analyzer cargo async-tls 0.13.0 crate/) fn writeablerust-analyzer cargo async-tls 0.13.0 common/tls_state/impl#[TlsState]writeable().(&self) -> bool { |
| 27 | match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self { |
| 28 | 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# | 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# => false, |
| 29 | _ => true, |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | pub(craterust-analyzer cargo async-tls 0.13.0 crate/) fn readablerust-analyzer cargo async-tls 0.13.0 common/tls_state/impl#[TlsState]readable().(self) -> bool { |
| 34 | match self { |
| 35 | 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# => false, |
| 36 | _ => true, |
| 37 | } |
| 38 | } |
| 39 | } |