pub enum TransportType {
Polling = 1,
Websocket = 2,
}Expand description
The type of transport used by the client.
Variants§
Trait Implementations§
Source§impl Clone for TransportType
impl Clone for TransportType
Source§fn clone(&self) -> TransportType
fn clone(&self) -> TransportType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransportType
impl Debug for TransportType
Source§impl<'de> Deserialize<'de> for TransportType
impl<'de> Deserialize<'de> for TransportType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TransportType> for &'static str
impl From<TransportType> for &'static str
Source§fn from(t: TransportType) -> Self
fn from(t: TransportType) -> Self
Converts to this type from the input type.
Source§impl From<TransportType> for String
impl From<TransportType> for String
Source§fn from(t: TransportType) -> Self
fn from(t: TransportType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for TransportType
impl From<u8> for TransportType
Source§impl FromStr for TransportType
impl FromStr for TransportType
Source§impl PartialEq for TransportType
impl PartialEq for TransportType
Source§impl PartialOrd for TransportType
impl PartialOrd for TransportType
Source§impl Serialize for TransportType
impl Serialize for TransportType
impl Copy for TransportType
impl StructuralPartialEq for TransportType
Auto Trait Implementations§
impl Freeze for TransportType
impl RefUnwindSafe for TransportType
impl Send for TransportType
impl Sync for TransportType
impl Unpin for TransportType
impl UnwindSafe for TransportType
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