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> Send for WebSocketBuilder<'a>
impl<'a> Sync for WebSocketBuilder<'a>
impl<'a> Unpin for WebSocketBuilder<'a>
impl<'a> UnsafeUnpin for WebSocketBuilder<'a>
impl<'a> !UnwindSafe 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more