pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn new(config: Config) -> Self
pub async fn run(&mut self) -> Result<()>
pub fn new_message(&self, msg_type: i32, data: Bytes) -> Message
pub async fn recv_message(&self) -> Option<Message>
pub async fn send_message( &self, message: Message, ) -> Result<(), SendError<Message>>
pub async fn get_status(&mut self) -> Status
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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