#[repr(u8)]pub enum ConnectionType {
HttpPolling = 0,
HttpStreaming = 1,
StreamSensing = 2,
WsPolling = 3,
WsStreaming = 4,
}Expand description
Represents the type of connection established with the Lightstreamer Server.
This enum indicates the specific transport protocol and connection mode being used for communication with the server.
Variants§
HttpPolling = 0
Connection established using HTTP polling transport.
HttpStreaming = 1
Connection established using HTTP streaming transport.
StreamSensing = 2
Connection in stream-sensing mode, where the client is determining the best transport to use.
WsPolling = 3
Connection established using WebSocket polling transport.
WsStreaming = 4
Connection established using WebSocket streaming transport.
Trait Implementations§
Source§impl Clone for ConnectionType
impl Clone for ConnectionType
Source§fn clone(&self) -> ConnectionType
fn clone(&self) -> ConnectionType
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 moreimpl Copy for ConnectionType
Source§impl Debug for ConnectionType
impl Debug for ConnectionType
impl Eq for ConnectionType
Source§impl Hash for ConnectionType
impl Hash for ConnectionType
Source§impl PartialEq for ConnectionType
impl PartialEq for ConnectionType
Source§fn eq(&self, other: &ConnectionType) -> bool
fn eq(&self, other: &ConnectionType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConnectionType
Auto Trait Implementations§
impl Freeze for ConnectionType
impl RefUnwindSafe for ConnectionType
impl Send for ConnectionType
impl Sync for ConnectionType
impl Unpin for ConnectionType
impl UnsafeUnpin for ConnectionType
impl UnwindSafe for ConnectionType
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