Enum socketio_rs::TransportType
source · pub enum TransportType {
Any,
Websocket,
WebsocketUpgrade,
Polling,
}
Expand description
Flavor of Engine.IO transport.
Variants
Any
Handshakes with polling, upgrades if possible
Websocket
Handshakes with websocket. Does not use polling.
WebsocketUpgrade
Handshakes with polling, errors if upgrade fails
Polling
Handshakes with polling
Trait Implementations
sourceimpl Clone for TransportType
impl Clone for TransportType
sourcefn clone(&self) -> TransportType
fn clone(&self) -> TransportType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl PartialEq<TransportType> for TransportType
impl PartialEq<TransportType> for TransportType
sourcefn eq(&self, other: &TransportType) -> bool
fn eq(&self, other: &TransportType) -> bool
impl Eq for TransportType
impl StructuralEq for TransportType
impl StructuralPartialEq for TransportType
Auto Trait Implementations
impl RefUnwindSafe for TransportType
impl Send for TransportType
impl Sync for TransportType
impl Unpin for TransportType
impl UnwindSafe for TransportType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.