mirror of
				https://github.com/johrpan/musicus.git
				synced 2025-10-26 19:57:25 +01:00 
			
		
		
		
	backend: Use tokio broadcast channels
This commit is contained in:
		
							parent
							
								
									3e2f73fc56
								
							
						
					
					
						commit
						cb3e958f1b
					
				
					 5 changed files with 42 additions and 38 deletions
				
			
		|  | @ -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), | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Elias Projahn
						Elias Projahn