Added bytestream ALPN

This commit is contained in:
Ultradesu
2026-07-16 18:35:21 +03:00
parent b9c61e2249
commit 555222d6d7
9 changed files with 630 additions and 5 deletions
+9
View File
@@ -61,6 +61,15 @@ pub enum NetworkError {
#[error("message rejected by peer: {0}")]
MessageRejected(String),
/// The given ALPN was not declared as a stream protocol in the
/// configuration.
#[error("unknown stream protocol: {0}")]
UnknownStreamProtocol(String),
/// The incoming-stream acceptor for this protocol was already taken.
#[error("stream acceptor already taken: {0}")]
StreamAcceptorTaken(String),
/// The engine is shutting down and no longer accepts operations.
#[error("engine is shutting down")]
ShuttingDown,