s2_kit/connect/server/tls_error.rs
1//! Errors from serving.
2
3/// Something went wrong accepting connections.
4#[derive(Debug, thiserror::Error)]
5#[non_exhaustive]
6pub enum Error {
7 /// The listener failed.
8 #[error("accepting a connection failed: {0}")]
9 Io(#[from] std::io::Error),
10 /// TLS could not be set up.
11 #[error(transparent)]
12 Tls(#[from] crate::connect::tls::Error),
13}