backend: Use tokio broadcast channels

This commit is contained in:
Elias Projahn 2021-04-25 12:26:43 +02:00
parent 3e2f73fc56
commit cb3e958f1b
5 changed files with 42 additions and 38 deletions

View file

@ -11,12 +11,12 @@ pub enum Error {
#[error("An error happened using the SecretService.")]
SecretServiceError(#[from] secret_service::Error),
#[error("A channel was canceled.")]
ChannelError(#[from] futures_channel::oneshot::Canceled),
#[error("An error happened while decoding to UTF-8.")]
Utf8Error(#[from] std::str::Utf8Error),
#[error("Failed to receive an event.")]
RecvError(#[from] tokio::sync::broadcast::error::RecvError),
#[error("An error happened: {0}")]
Other(String),
}