pub struct WebSocketBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> WebSocketBuilder<'a>
impl<'a> WebSocketBuilder<'a>
pub fn header(self, name: impl Into<String>, value: impl Into<String>) -> Self
pub fn headers(self, headers: impl Into<Headers>) -> Self
pub fn subprotocol(self, value: impl Into<String>) -> Self
pub fn subprotocols<I, S>(self, values: I) -> Self
pub fn max_message_size(self, bytes: usize) -> Self
pub fn max_frame_size(self, bytes: usize) -> Self
pub fn connect_timeout(self, timeout: Duration) -> Self
pub fn handshake_timeout(self, timeout: Duration) -> Self
pub fn read_timeout(self, timeout: Duration) -> Self
pub fn write_timeout(self, timeout: Duration) -> Self
pub async fn connect(self) -> WebSocketResult<WebSocket>
Auto Trait Implementations§
impl<'a> !Freeze for WebSocketBuilder<'a>
impl<'a> !RefUnwindSafe for WebSocketBuilder<'a>
impl<'a> !UnwindSafe for WebSocketBuilder<'a>
impl<'a> Send for WebSocketBuilder<'a>
impl<'a> Sync for WebSocketBuilder<'a>
impl<'a> Unpin for WebSocketBuilder<'a>
impl<'a> UnsafeUnpin for WebSocketBuilder<'a>
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