pub struct WebSocketTunnelClient { /* private fields */ }Implementations§
Source§impl WebSocketTunnelClient
impl WebSocketTunnelClient
pub fn new(max_message_size: usize) -> Self
pub fn with_default_config() -> Self
pub async fn connect(&self, url: &str) -> Result<BoxStream, WebSocketError>
pub async fn connect_with_config( &self, url: &str, config: WebSocketConfig, ) -> Result<BoxStream, WebSocketError>
pub async fn connect_over_stream<S>( &self, url: &str, stream: S, ) -> Result<BoxStream, WebSocketError>
pub async fn connect_over_stream_with_config<S>( &self, url: &str, stream: S, config: WebSocketConfig, ) -> Result<BoxStream, WebSocketError>
Auto Trait Implementations§
impl Freeze for WebSocketTunnelClient
impl RefUnwindSafe for WebSocketTunnelClient
impl Send for WebSocketTunnelClient
impl Sync for WebSocketTunnelClient
impl Unpin for WebSocketTunnelClient
impl UnsafeUnpin for WebSocketTunnelClient
impl UnwindSafe for WebSocketTunnelClient
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