move session update method to struct implementation

This commit is contained in:
yggverse 2024-11-30 03:15:57 +02:00
parent 2db7d77f43
commit ab9c7f4400
4 changed files with 109 additions and 73 deletions

View file

@ -0,0 +1,16 @@
use std::fmt::{Display, Formatter, Result};
#[derive(Debug)]
pub enum Error {
Connection(crate::client::connection::Error),
}
impl Display for Error {
fn fmt(&self, f: &mut Formatter) -> Result {
match self {
Self::Connection(e) => {
write!(f, "Connection error: {e}")
}
}
}
}