mirror of
https://github.com/mikedilger/chorus.git
synced 2026-06-02 07:02:09 +00:00
Handle tokio channel errors
This commit is contained in:
parent
52b449b6c7
commit
fc35600e86
@ -11,6 +11,14 @@ pub enum Error {
|
||||
#[error("Output buffer too small")]
|
||||
BufferTooSmall,
|
||||
|
||||
// Channel Recv
|
||||
#[error("Channel receive: {0}")]
|
||||
ChannelRecv(#[from] tokio::sync::broadcast::error::RecvError),
|
||||
|
||||
// Channel Send
|
||||
#[error("Channel send: {0}")]
|
||||
ChannelSend(#[from] tokio::sync::broadcast::error::SendError<usize>),
|
||||
|
||||
// Config
|
||||
#[error("Config: {0}")]
|
||||
Config(#[from] ron::error::SpannedError),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user