pub struct WebsocketIO { /* private fields */ }
Implementations§
Source§impl WebsocketIO
impl WebsocketIO
pub async fn new(addr: &str) -> Result<WebsocketIO, Error>
pub async fn new_wss(addr: &str) -> Result<WebsocketIO, Error>
pub fn split(self) -> (impl AsyncBufRead, impl AsyncWrite)
Auto Trait Implementations§
impl Freeze for WebsocketIO
impl !RefUnwindSafe for WebsocketIO
impl !Send for WebsocketIO
impl !Sync for WebsocketIO
impl Unpin for WebsocketIO
impl !UnwindSafe for WebsocketIO
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