pub enum Transport {
Ws,
Http,
WsStreaming,
HttpStreaming,
WsPolling,
HttpPolling,
}
Expand description
The transport type to be used by the client.
- WS: the Stream-Sense algorithm is enabled as in the
None
case but the client will only use WebSocket based connections. If a connection over WebSocket is not possible because of the environment the client will not connect at all. - HTTP: the Stream-Sense algorithm is enabled as in the
None
case but the client will only use HTTP based connections. If a connection over HTTP is not possible because of the environment the client will not connect at all. - WS-STREAMING: the Stream-Sense algorithm is disabled and the client will only connect on Streaming over WebSocket. If Streaming over WebSocket is not possible because of the environment the client will not connect at all.
- HTTP-STREAMING: the Stream-Sense algorithm is disabled and the client will only connect on Streaming over HTTP. If Streaming over HTTP is not possible because of the browser/environment the client will not connect at all.
- WS-POLLING: the Stream-Sense algorithm is disabled and the client will only connect on Polling over WebSocket. If Polling over WebSocket is not possible because of the environment the client will not connect at all.
- HTTP-POLLING: the Stream-Sense algorithm is disabled and the client will only connect on Polling over HTTP. If Polling over HTTP is not possible because of the environment the client will not connect at all.
Variants§
Ws
WebSocket transport with Stream-Sense algorithm enabled. The client will only use WebSocket-based connections.
Http
HTTP transport with Stream-Sense algorithm enabled. The client will only use HTTP-based connections.
WsStreaming
WebSocket Streaming transport with Stream-Sense algorithm disabled. The client will only connect on Streaming over WebSocket.
HttpStreaming
HTTP Streaming transport with Stream-Sense algorithm disabled. The client will only connect on Streaming over HTTP.
WsPolling
WebSocket Polling transport with Stream-Sense algorithm disabled. The client will only connect on Polling over WebSocket.
HttpPolling
HTTP Polling transport with Stream-Sense algorithm disabled. The client will only connect on Polling over HTTP.
Trait Implementations§
impl StructuralPartialEq for Transport
Auto Trait Implementations§
impl Freeze for Transport
impl RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnwindSafe for Transport
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