pub async fn start(addr: SocketAddr) -> Result<(), Box<dyn std::error::Error>> {
        transport::Server::builder()
            .add_service(KvdbServer::new(Self {
                store: Arc::new(Mutex::new(Store::new())),
            }))
            .serve(addr)
            .await?;

        Ok(())
    }
/// Create and initialize a server as service with gRPC interfaces.
Create and initialize a server as service with gRPC interfaces.
Create and initialize a server as service with gRPC interfaces .
pub async fn start(addr: SocketAddr) -> Result<(), Box<dyn std::error::Error>> {
        transport::Server::builder()
            .add_service(KvdbServer::new(Self {
                store: Arc::new(Mutex::new(Store::new())),
            }))
            .serve(addr)
            .await?;
        Ok(())
    }
pub async fn start ( addr : SocketAddr ) -> Result < ( ) , Box < dyn std :: error :: Error > > { transport :: Server :: builder ( ) . add_service ( KvdbServer :: new ( Self { store : Arc :: new ( Mutex :: new ( Store :: new ( ) ) ) , } ) ) . serve ( addr ) . await ? ; Ok ( ( ) ) }
Create and initialize a server as service with gRPC interfaces.
Create and initialize a server as service with gRPC interfaces .
addr
SocketAddr
addr
SocketAddr