NetDesk 1.5.0 — source release

This commit is contained in:
NetDesk committed 2026-10-18 00:10:03 +00:00
commit 37aa876908
227 files changed
+80694

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
use thiserror::Error;
#[derive(Error, Debug)]
pub enum NdError {
#[error("connection failed: {0}")]
Connect(String),
#[error("protocol error: {0}")]
Protocol(String),
#[error("authentication failed: {0}")]
Auth(String),
#[error("session denied: {0}")]
Denied(String),
#[error("crypto error: {0}")]
Crypto(String),
#[error("websocket closed")]
Closed,
#[error(transparent)]
Json(#[from] serde_json::Error),
#[error(transparent)]
Other(#[from] anyhow::Error),
}
pub type Result<T> = std::result::Result<T, NdError>;