pub struct PollingTransport { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for PollingTransport
impl Clone for PollingTransport
Source§fn clone(&self) -> PollingTransport
fn clone(&self) -> PollingTransport
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 PollingTransport
impl Debug for PollingTransport
Source§impl From<PollingTransport> for TransportType
impl From<PollingTransport> for TransportType
Source§fn from(transport: PollingTransport) -> Self
fn from(transport: PollingTransport) -> Self
Converts to this type from the input type.
Source§impl Transport for PollingTransport
impl Transport for PollingTransport
Source§fn emit(&self, data: Bytes, is_binary_att: bool) -> Result<(), Error>
fn emit(&self, data: Bytes, is_binary_att: bool) -> Result<(), Error>
Sends a packet to the server. This optionally handles sending of a
socketio binary attachment via the boolean attribute
is_binary_att.Source§fn poll(&self, timeout: Duration) -> Result<Bytes, Error>
fn poll(&self, timeout: Duration) -> Result<Bytes, Error>
Performs the server long polling procedure as long as the client is
connected. This should run separately at all time to ensure proper
response handling from the server.
Source§fn base_url(&self) -> Result<Url, Error>
fn base_url(&self) -> Result<Url, Error>
Returns start of the url. ex. http://localhost:2998/engine.io/?EIO=4&transport=polling
Must have EIO and transport already set.
Auto Trait Implementations§
impl Freeze for PollingTransport
impl !RefUnwindSafe for PollingTransport
impl Send for PollingTransport
impl Sync for PollingTransport
impl Unpin for PollingTransport
impl !UnwindSafe for PollingTransport
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