Enum socketioxide::TransportType
source · 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 copy 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 From<TransportType> for &'static str
impl From<TransportType> for &'static str
source§fn from(t: TransportType) -> &'static str
fn from(t: TransportType) -> &'static str
Converts to this type from the input type.
source§impl From<u8> for TransportType
impl From<u8> for TransportType
source§fn from(t: u8) -> TransportType
fn from(t: u8) -> TransportType
Converts to this type from the input type.
source§impl<A: Adapter> FromConnectParts<A> for TransportType
impl<A: Adapter> FromConnectParts<A> for TransportType
§type Error = Infallible
type Error = Infallible
The error type returned by the extractor
source§fn from_connect_parts(
s: &Arc<Socket<A>>,
_: &Option<String>
) -> Result<Self, Infallible>
fn from_connect_parts( s: &Arc<Socket<A>>, _: &Option<String> ) -> Result<Self, Infallible>
Extract the arguments from the connect event.
If it fails, the handler is not called
source§impl<A: Adapter> FromDisconnectParts<A> for TransportType
impl<A: Adapter> FromDisconnectParts<A> for TransportType
§type Error = Infallible
type Error = Infallible
The error type returned by the extractor
source§fn from_disconnect_parts(
s: &Arc<Socket<A>>,
_: DisconnectReason
) -> Result<Self, Infallible>
fn from_disconnect_parts( s: &Arc<Socket<A>>, _: DisconnectReason ) -> Result<Self, Infallible>
Extract the arguments from the disconnect event.
If it fails, the handler is not called
source§impl<A: Adapter> FromMessageParts<A> for TransportType
impl<A: Adapter> FromMessageParts<A> for TransportType
source§impl FromStr for TransportType
impl FromStr for TransportType
source§impl PartialEq for TransportType
impl PartialEq for TransportType
source§fn eq(&self, other: &TransportType) -> bool
fn eq(&self, other: &TransportType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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