[−][src]Struct engine_io_server::socket::Socket
Fields
id: String
Implementations
impl<A: 'static + Adapter> Socket<A>
[src]
pub fn new(
id: String,
remote_address: String,
event_sender: Sender<SocketEvent>,
transport_kind: TransportKind,
supports_binary: bool
) -> Self
[src]
id: String,
remote_address: String,
event_sender: Sender<SocketEvent>,
transport_kind: TransportKind,
supports_binary: bool
) -> Self
pub fn get_transport(&self) -> &Transport<A>
[src]
pub fn get_transport_mut(&mut self) -> &mut Transport<A>
[src]
pub fn get_transport_mut_as_polling(
&mut self
) -> Result<&mut A::Polling, ServerError>
[src]
&mut self
) -> Result<&mut A::Polling, ServerError>
pub fn get_transport_kind(&self) -> TransportKind
[src]
pub async fn open<'_, '_>(&'_ mut self, server_options: &'_ ServerOptions)
[src]
pub fn close(&mut self, discard: bool)
[src]
pub async fn send<'_>(
&'_ mut self,
packet_data: PacketData,
callback: Option<Box<dyn Fn() + Send + 'static>>
)
[src]
&'_ mut self,
packet_data: PacketData,
callback: Option<Box<dyn Fn() + Send + 'static>>
)
pub async fn write<'_>(
&'_ mut self,
packet_data: PacketData,
callback: Option<Box<dyn Fn() + Send + 'static>>
)
[src]
&'_ mut self,
packet_data: PacketData,
callback: Option<Box<dyn Fn() + Send + 'static>>
)
pub async fn handle_polling_request<'_>(
&'_ mut self,
request_context: RequestContext
) -> Result<A::Response, ServerError>
[src]
&'_ mut self,
request_context: RequestContext
) -> Result<A::Response, ServerError>
pub fn maybe_upgrade(
&mut self,
transport_kind: TransportKind,
supports_binary: bool
)
[src]
&mut self,
transport_kind: TransportKind,
supports_binary: bool
)
pub fn get_available_upgrades(&self) -> Vec<&str>
[src]
Auto Trait Implementations
impl<A> !RefUnwindSafe for Socket<A>
impl<A> Send for Socket<A> where
<A as Adapter>::Polling: Send,
<A as Adapter>::WebSocket: Send,
<A as Adapter>::Polling: Send,
<A as Adapter>::WebSocket: Send,
impl<A> !Sync for Socket<A>
impl<A> Unpin for Socket<A> where
<A as Adapter>::Polling: Unpin,
<A as Adapter>::WebSocket: Unpin,
<A as Adapter>::Polling: Unpin,
<A as Adapter>::WebSocket: Unpin,
impl<A> !UnwindSafe for Socket<A>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,