pub async fn fetch_conf(mut self) -> Result<ConfigBuilder<H, R, U, BF, BF>, BuildError> {
        let resp: Resp<ConfQueryInner> = self
            .http
            .get_json("https://api.live.bilibili.com/room/v1/Danmu/getConf")
            .await
            .map_err(BuildError)?;

        self.token = Some(resp.token().to_string());
        self.servers = Some(resp.servers());
        Ok(self.cast())
    }
/// Fetches danmaku server configs & uris
///
/// # Errors
/// Returns an error when HTTP api request fails.
Fetches danmaku server configs & uris
Fetches danmaku server configs & uris
pub async fn fetch_conf(mut self) -> Result<ConfigBuilder<H, R, U, BF, BF>, BuildError> {
        let resp: Resp<ConfQueryInner> = self
            .http
            .get_json("https://api.live.bilibili.com/room/v1/Danmu/getConf")
            .await
            .map_err(BuildError)?;
        self.token = Some(resp.token().to_string());
        self.servers = Some(resp.servers());
        Ok(self.cast())
    }
pub async fn fetch_conf ( mut self ) -> Result < ConfigBuilder < H , R , U , BF , BF > , BuildError > { let resp : Resp < ConfQueryInner > = self . http . get_json ( " " ) . await . map_err ( BuildError ) ? ; self . token = Some ( resp . token ( ) . to_string ( ) ) ; self . servers = Some ( resp . servers ( ) ) ; Ok ( self . cast ( ) ) }
Fetches danmaku server configs & uris
Fetches danmaku server configs & uris
mut self
mut self
errors
Returns an error when HTTP api request fails.
Returns an error when HTTP api request fails .