pub struct WebSocketConnector { /* private fields */ }Implementations§
Source§impl WebSocketConnector
impl WebSocketConnector
pub fn new<S: ToString>(url: S) -> Self
pub fn skip_server_verification(self, skip_server_verification: bool) -> Self
pub fn client_auth_cert_and_key<T: Into<Option<(Certificate, Certificate)>>>( self, client_auth_cert_and_key: T, ) -> Self
Trait Implementations§
Source§impl Clone for WebSocketConnector
impl Clone for WebSocketConnector
Source§fn clone(&self) -> WebSocketConnector
fn clone(&self) -> WebSocketConnector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Connector for WebSocketConnector
impl Connector for WebSocketConnector
type Reader = WebSocketReader
type Writer = WebSocketWriter
type Closer = WebSocketCloser
type UnreliableReader = UnreliableNotSupported
type UnreliableWriter = UnreliableNotSupported
async fn connect( &self, negotiation_params: NegotiationParams, ) -> Result<Transport<Self>, TransportError>
Auto Trait Implementations§
impl Freeze for WebSocketConnector
impl RefUnwindSafe for WebSocketConnector
impl Send for WebSocketConnector
impl Sync for WebSocketConnector
impl Unpin for WebSocketConnector
impl UnsafeUnpin for WebSocketConnector
impl UnwindSafe for WebSocketConnector
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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