pub struct WebSocketClient { /* private fields */ }
Implementations§
Source§impl WebSocketClient
impl WebSocketClient
pub async fn connect<F: Future<Output = Result<bool>> + 'static, A: Send + 'static>( addr: &str, input: impl FnOnce(A, Arc<Actor<Self>>, WebSocketReader) -> F + Send + 'static, token: A, ) -> Result<Arc<Actor<Self>>>
pub async fn connect_wss<F: Future<Output = Result<bool>> + 'static, A: Send + 'static>( addr: &str, input: impl FnOnce(A, Arc<Actor<Self>>, WebSocketReader) -> F + Send + 'static, token: A, ) -> Result<Arc<Actor<Self>>>
Auto Trait Implementations§
impl Freeze for WebSocketClient
impl RefUnwindSafe for WebSocketClient
impl Send for WebSocketClient
impl Sync for WebSocketClient
impl Unpin for WebSocketClient
impl UnwindSafe for WebSocketClient
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