pub struct WebsocketTransport { /* private fields */ }Trait Implementations§
Source§impl Debug for WebsocketTransport
impl Debug for WebsocketTransport
Source§impl Transport for WebsocketTransport
impl Transport for WebsocketTransport
type Acceptor = Listener
type RawStream = Stream
type Stream = WebsocketStream
fn new(config: &TransportConfig) -> Result<Self>
Source§fn hint(conn: &Self::Stream, opt: SocketOpts)
fn hint(conn: &Self::Stream, opt: SocketOpts)
Provide the transport with socket options, which can be handled at the need of the transport
Source§fn as_raw_fd(conn: &Self::Stream) -> RawFd
fn as_raw_fd(conn: &Self::Stream) -> RawFd
Get the stream id, which is used to identify the transport layer
fn bind<'life0, 'async_trait>(
&'life0 self,
addr: NamedSocketAddr,
) -> Pin<Box<dyn Future<Output = Result<Self::Acceptor>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn accept<'life0, 'life1, 'async_trait>(
&'life0 self,
a: &'life1 Self::Acceptor,
) -> Pin<Box<dyn Future<Output = Result<(Self::RawStream, SocketAddr)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn accept<'life0, 'life1, 'async_trait>(
&'life0 self,
a: &'life1 Self::Acceptor,
) -> Pin<Box<dyn Future<Output = Result<(Self::RawStream, SocketAddr)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
accept must be cancel safe
fn handshake<'life0, 'async_trait>(
&'life0 self,
conn: Self::RawStream,
) -> Pin<Box<dyn Future<Output = Result<Self::Stream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'life1, 'async_trait>(
&'life0 self,
addr: &'life1 AddrMaybeCached,
) -> Pin<Box<dyn Future<Output = Result<Self::Stream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_header(&self, name: &str) -> Option<String>
Auto Trait Implementations§
impl Freeze for WebsocketTransport
impl !RefUnwindSafe for WebsocketTransport
impl Send for WebsocketTransport
impl Sync for WebsocketTransport
impl Unpin for WebsocketTransport
impl !UnwindSafe for WebsocketTransport
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more