new_front

Function new_front 

Source
pub async fn new_front(
    bin_storage: Box<dyn BinStorage>,
) -> TribResult<Box<dyn Server + Send + Sync>>
Expand description

this function accepts a BinStorage client which should be used in order to implement the Server trait.

You’ll need to translate calls from the tribbler front-end into storage calls using the BinStorage interface.

Additionally, two trait bounds Send and Sync are required of your implementation. This should guarantee your front-end is safe to use in the tribbler front-end service launched by thetrib-front command