pub async fn load_from(path: impl AsRef<Path>) -> io::Result<Self> {
        let text = tokio::fs::read_to_string(path.as_ref()).await?;

        Ok(Self {
            path: path.as_ref().to_path_buf(),
            session: text.parse()?,
        })
    }
/// Loads a session from a file at the specified path
Loads a session from a file at the specified path
Loads a session from a file at the specified path
pub async fn load_from(path: impl AsRef<Path>) -> io::Result<Self> {
        let text = tokio::fs::read_to_string(path.as_ref()).await?;
        Ok(Self {
            path: path.as_ref().to_path_buf(),
            session: text.parse()?,
        })
    }
pub async fn load_from ( path : impl AsRef < Path > ) -> io :: Result < Self > { let text = tokio :: fs :: read_to_string ( path . as_ref ( ) ) . await ? ; Ok ( Self { path : path . as_ref ( ) . to_path_buf ( ) , session : text . parse ( ) ? , } ) }
Loads a session from a file at the specified path
Loads a session from a file at the specified path
path
impl AsRef<Path>