Session
7 new from Essentials. About 2 min.
New
Command palette
⌃Ctrl+⇧Shift+P
You want to format this file but can't remember where that lives. Search the editor's commands.
relay — server.rs
▾relay
▾src
·db.rs
·main.rs
·server.rs
·Cargo.toml
server.rsdb.rs
1use crate::db::Pool;
2
3pub struct Server {
4 pool: Pool,
5 port: u16,
6}
7
8impl Server {
9 pub fn new(pool: Pool) -> Self {
10 Self { pool, port: 8080 }
11 }
or press Enter