pub struct WebsocKitClient { /* private fields */ }
Implementations§
Source§impl WebsocKitClient
impl WebsocKitClient
Sourcepub async fn new(url: &str) -> WebsocKitResult<Self>
pub async fn new(url: &str) -> WebsocKitResult<Self>
§Errors
TODO
Sourcepub async fn send_message(&self, message: Vec<u8>) -> WebsocKitResult<()>
pub async fn send_message(&self, message: Vec<u8>) -> WebsocKitResult<()>
§Errors
TODO
Sourcepub async fn read_message(&self) -> WebsocKitResult<Option<Vec<u8>>>
pub async fn read_message(&self) -> WebsocKitResult<Option<Vec<u8>>>
§Errors
TODO
Auto Trait Implementations§
impl Freeze for WebsocKitClient
impl !RefUnwindSafe for WebsocKitClient
impl Send for WebsocKitClient
impl Sync for WebsocKitClient
impl Unpin for WebsocKitClient
impl !UnwindSafe for WebsocKitClient
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