blivemsg 0.2.2

Bilibili Live Message Library - 轻量高效的B站直播消息 Rust 库 - 支持 52+ 消息类型 - 轻量、快速、模块化
Documentation
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("Cookie file not found: {0}")]
    CookieFileNotFound(std::path::PathBuf),
    
    #[cfg(feature = "http-wreq")]
    #[error("HTTP request failed: {0}")]
    HttpError(#[from] wreq::Error),
    
    #[cfg(feature = "http-reqwest")]
    #[error("HTTP request failed: {0}")]
    HttpError(#[from] reqwest::Error),
    
    #[error("WebSocket connection failed: {0}")]
    WsError(#[from] tokio_tungstenite::tungstenite::Error),
    
    #[error("JSON parsing failed: {0}")]
    JsonError(#[from] serde_json::Error),
    
    #[error("Room ID invalid: {0}")]
    InvalidRoomId(u64),
    
    #[error("IO error: {0}")]
    IoError(#[from] std::io::Error),
    
    #[error("Authentication failed")]
    AuthenticationFailed,
}