pub struct WsIoClientBuilder { /* private fields */ }Implementations§
Source§impl WsIoClientBuilder
impl WsIoClientBuilder
pub fn build(self) -> WsIoClient
pub fn init_handler_timeout(self, duration: Duration) -> Self
pub fn init_packet_timeout(self, duration: Duration) -> Self
pub fn on_session_close<H, Fut>(self, handler: H) -> Self
pub fn on_session_close_handler_timeout(self, duration: Duration) -> Self
pub fn on_session_ready<H, Fut>(self, handler: H) -> Self
pub fn packet_codec(self, packet_codec: WsIoPacketCodec) -> Self
pub fn ping_interval(self, duration: Duration) -> Self
pub fn ready_packet_timeout(self, duration: Duration) -> Self
pub fn reconnect_delay(self, delay: Duration) -> Self
pub fn request_path(self, request_path: impl AsRef<str>) -> Self
pub fn websocket_config(self, websocket_config: WebSocketConfig) -> Self
pub fn websocket_config_mut<F: FnOnce(&mut WebSocketConfig)>(self, f: F) -> Self
pub fn with_init_handler<H, Fut, D, R>(self, handler: H) -> WsIoClientBuilder
Auto Trait Implementations§
impl Freeze for WsIoClientBuilder
impl !RefUnwindSafe for WsIoClientBuilder
impl Send for WsIoClientBuilder
impl Sync for WsIoClientBuilder
impl Unpin for WsIoClientBuilder
impl UnsafeUnpin for WsIoClientBuilder
impl !UnwindSafe for WsIoClientBuilder
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