pub enum ClientHttpTransport {
Sse(ClientSseTransport),
Ws(ClientWsTransport),
}
Variants§
Trait Implementations§
Source§impl Clone for ClientHttpTransport
impl Clone for ClientHttpTransport
Source§impl Transport for ClientHttpTransport
impl Transport for ClientHttpTransport
Source§fn send(
&self,
message: &Message,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + Sync + '_>>
fn send( &self, message: &Message, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + Sync + '_>>
Send a message to the transport
Source§fn receive<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<Message>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn receive<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<Message>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Receive a message from the transport
this is blocking call
Auto Trait Implementations§
impl Freeze for ClientHttpTransport
impl !RefUnwindSafe for ClientHttpTransport
impl Send for ClientHttpTransport
impl Sync for ClientHttpTransport
impl Unpin for ClientHttpTransport
impl !UnwindSafe for ClientHttpTransport
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