pub struct BiliLiveClient { /* private fields */ }Implementations§
Source§impl BiliLiveClient
impl BiliLiveClient
pub fn new(cookies: &str, room_id: &str, r: Sender<BiliMessage>) -> Self
Sourcepub fn new_auto(
cookies: Option<&str>,
room_id: &str,
r: Sender<BiliMessage>,
) -> Result<Self, String>
pub fn new_auto( cookies: Option<&str>, room_id: &str, r: Sender<BiliMessage>, ) -> Result<Self, String>
Create a new client with automatic browser cookie detection If cookies is None or empty, it will try to find cookies from browser
pub fn send_auth(&mut self)
pub fn send_heart_beat(&mut self)
pub fn parse_ws_message(&mut self, resv: Vec<u8>)
pub fn parse_business_message(&mut self, h: MsgHead, b: &[u8])
pub fn recive(&mut self)
Auto Trait Implementations§
impl Freeze for BiliLiveClient
impl !RefUnwindSafe for BiliLiveClient
impl Send for BiliLiveClient
impl Sync for BiliLiveClient
impl Unpin for BiliLiveClient
impl !UnwindSafe for BiliLiveClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more