pub struct TungsteniteTransport { /* private fields */ }Expand description
WebSocket transport using tokio-tungstenite.
Implementations§
Trait Implementations§
Source§impl Default for TungsteniteTransport
impl Default for TungsteniteTransport
Source§impl Transport for TungsteniteTransport
impl Transport for TungsteniteTransport
Source§type Error = TungsteniteError
type Error = TungsteniteError
The error type produced by this transport.
Source§fn connect<'life0, 'life1, 'async_trait>(
&'life0 mut self,
url: &'life1 str,
headers: Vec<(String, String)>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn connect<'life0, 'life1, 'async_trait>(
&'life0 mut self,
url: &'life1 str,
headers: Vec<(String, String)>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Connect to the given URL with optional headers.
Source§fn send<'life0, 'async_trait>(
&'life0 mut self,
data: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 mut self,
data: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send raw bytes.
Auto Trait Implementations§
impl Freeze for TungsteniteTransport
impl !RefUnwindSafe for TungsteniteTransport
impl Send for TungsteniteTransport
impl Sync for TungsteniteTransport
impl Unpin for TungsteniteTransport
impl !UnwindSafe for TungsteniteTransport
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