pub struct WebsocketTransport { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for WebsocketTransport
impl Clone for WebsocketTransport
Source§fn clone(&self) -> WebsocketTransport
fn clone(&self) -> WebsocketTransport
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 WebsocketTransport
impl Debug for WebsocketTransport
Source§impl From<WebsocketTransport> for TransportType
impl From<WebsocketTransport> for TransportType
Source§fn from(transport: WebsocketTransport) -> Self
fn from(transport: WebsocketTransport) -> Self
Converts to this type from the input type.
Source§impl Transport for WebsocketTransport
impl Transport for WebsocketTransport
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 WebsocketTransport
impl !RefUnwindSafe for WebsocketTransport
impl Send for WebsocketTransport
impl Sync for WebsocketTransport
impl Unpin for WebsocketTransport
impl !UnwindSafe for WebsocketTransport
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