pub async fn close(&self) -> Result<()> {
        self.buffer.close().await;

        let mut endpoints = self.endpoints.lock().await;
        endpoints.remove(&self.id);

        Ok(())
    }
/// Close unregisters the endpoint from the Mux
Close unregisters the endpoint from the Mux
Close unregisters the endpoint from the Mux
pub async fn close(&self) -> Result<()> {
        self.buffer.close().await;
        let mut endpoints = self.endpoints.lock().await;
        endpoints.remove(&self.id);
        Ok(())
    }
pub async fn close ( & self ) -> Result < ( ) > { self . buffer . close ( ) . await ; let mut endpoints = self . endpoints . lock ( ) . await ; endpoints . remove ( & self . id ) ; Ok ( ( ) ) }
Close unregisters the endpoint from the Mux
Close unregisters the endpoint from the Mux
&self