diff options
| author | zirkonya <zirkonya@iridium.lan> | 2026-08-29 22:11:23 +0200 |
|---|---|---|
| committer | zirkonya <zirkonya@iridium.lan> | 2026-08-29 22:11:23 +0200 |
| commit | bf9b81e669f4ce98c8d58df5d776ae90726d7ec2 (patch) | |
| tree | e0d5bdbd8a3423f1303577ddebbfa34696d336bb /src/transport/error.rs | |
| parent | bb41e396aca01fee9f81785681fac0a79d0fd9d8 (diff) | |
Add transport layer
Diffstat (limited to 'src/transport/error.rs')
| -rw-r--r-- | src/transport/error.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/transport/error.rs b/src/transport/error.rs new file mode 100644 index 0000000..41f9cf2 --- /dev/null +++ b/src/transport/error.rs @@ -0,0 +1,19 @@ +use thiserror::Error; + +#[derive(Debug, Error)] +pub enum TransportError { + #[error("io error: {0}")] + Io(#[from] std::io::Error), + + #[error("codec error: {0}")] + Codec(#[from] crate::codec::error::CodecError), + + #[error("receiver channel closed")] + ChannelClosed, + + #[error("receiver lock poisoned")] + LockPoisoned, + + #[error("{0}")] + Other(String), +} |
