async fn del(&self, args: Request<Byte>) -> Result<Response<Null>, Status> {
        let key = args.into_inner().body;
        match self.store.lock().await.del(Bytes::from(key)) {
            ExecResult::Failed => Err(Status::not_found("Key not in use")),
            ExecResult::Success => Ok(Response::new(Null {})),
        }
    }
/// RPC that removes a KEY -> VALUE mapping, erring if it doesn't exist.
RPC that removes a KEY -> VALUE mapping, erring if it doesn't exist.
RPC that removes a KEY - > VALUE mapping erring if it doesn ' t exist .
async fn del(&self, args: Request<Byte>) -> Result<Response<Null>, Status> {
        let key = args.into_inner().body;
        match self.store.lock().await.del(Bytes::from(key)) {
            ExecResult::Failed => Err(Status::not_found("Key not in use")),
            ExecResult::Success => Ok(Response::new(Null {})),
        }
    }
async fn del ( & self , args : Request < Byte > ) -> Result < Response < Null > , Status > { let key = args . into_inner ( ) . body ; match self . store . lock ( ) . await . del ( Bytes :: from ( key ) ) { ExecResult :: Failed => Err ( Status :: not_found ( " " ) ) , ExecResult :: Success => Ok ( Response :: new ( Null { } ) ) , } }
RPC that removes a KEY -> VALUE mapping, erring if it doesn't exist.
RPC that removes a KEY - > VALUE mapping erring if it doesn ' t exist .
&self
args
Request<Byte>
&self
args
Request<Byte>