aboutsummaryrefslogtreecommitdiffstats
path: root/filamento/src/logic/connection_error.rs
blob: 36c1cefd4f9ad15040ff3e7716333926ba8233dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
use lampada::error::ConnectionError;

use crate::files::FileStore;

use super::ClientLogic;

pub async fn handle_connection_error<Fs: FileStore + Clone>(
    logic: ClientLogic<Fs>,
    error: ConnectionError,
) {
    logic.handle_error(error.into()).await;
}