lab/lab1/
lab.rs

1use tribbler::{config::BackConfig, err::TribResult, storage::Storage};
2
3/// an async function which blocks indefinitely until interrupted serving on
4/// the host and port specified in the [BackConfig] parameter.
5pub async fn serve_back(config: BackConfig) -> TribResult<()> {
6    todo!();
7}
8
9/// This function should create a new client which implements the [Storage]
10/// trait. It should communicate with the backend that is started in the
11/// [serve_back] function.
12pub async fn new_client(addr: &str) -> TribResult<Box<dyn Storage>> {
13    todo!();
14}