pub struct WebSocketClient { /* private fields */ }Implementations§
Source§impl WebSocketClient
impl WebSocketClient
pub fn new(url: String) -> Self
pub fn with_reconnect_delay(self, delay: Duration) -> Self
pub fn with_max_attempts(self, attempts: usize) -> Self
Sourcepub async fn connect_with_retry(&self) -> Result<WebSocketStream>
pub async fn connect_with_retry(&self) -> Result<WebSocketStream>
Connect to WebSocket with exponential backoff retry
Auto Trait Implementations§
impl Freeze for WebSocketClient
impl RefUnwindSafe for WebSocketClient
impl Send for WebSocketClient
impl Sync for WebSocketClient
impl Unpin for WebSocketClient
impl UnsafeUnpin 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