pub struct WebsocketConnectionBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct WebsocketConnection
objects.
Implementations§
Source§impl WebsocketConnectionBuilder
impl WebsocketConnectionBuilder
pub fn connection_type(self, connection_type: WebsocketConnectionType) -> Self
pub fn io_stream(self, io_stream: &impl IsA<IOStream>) -> Self
pub fn keepalive_interval(self, keepalive_interval: u32) -> Self
pub fn keepalive_pong_timeout(self, keepalive_pong_timeout: u32) -> Self
Available on crate feature
v3_6
only.pub fn max_incoming_payload_size(self, max_incoming_payload_size: u64) -> Self
pub fn origin(self, origin: impl Into<GString>) -> Self
pub fn protocol(self, protocol: impl Into<GString>) -> Self
pub fn uri(self, uri: &Uri) -> Self
Sourcepub fn build(self) -> WebsocketConnection
pub fn build(self) -> WebsocketConnection
Build the WebsocketConnection
.
Auto Trait Implementations§
impl Freeze for WebsocketConnectionBuilder
impl RefUnwindSafe for WebsocketConnectionBuilder
impl !Send for WebsocketConnectionBuilder
impl !Sync for WebsocketConnectionBuilder
impl Unpin for WebsocketConnectionBuilder
impl UnwindSafe for WebsocketConnectionBuilder
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