#[non_exhaustive]pub enum TlsCloseKind {
Clean,
Unclean,
}Expand description
Whether a TLS stream ended with close_notify.
assert_ne!(net_io::TlsCloseKind::Clean, net_io::TlsCloseKind::Unclean);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for TlsCloseKind
impl Clone for TlsCloseKind
impl Copy for TlsCloseKind
Source§impl Debug for TlsCloseKind
impl Debug for TlsCloseKind
impl Eq for TlsCloseKind
Source§impl PartialEq for TlsCloseKind
impl PartialEq for TlsCloseKind
impl StructuralPartialEq for TlsCloseKind
Auto Trait Implementations§
impl Freeze for TlsCloseKind
impl RefUnwindSafe for TlsCloseKind
impl Send for TlsCloseKind
impl Sync for TlsCloseKind
impl Unpin for TlsCloseKind
impl UnsafeUnpin for TlsCloseKind
impl UnwindSafe for TlsCloseKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more