Struct rust_engineio::Client
source · [−]pub struct Client { /* private fields */ }Implementations
sourceimpl Client
impl Client
pub fn close(&self) -> Result<(), Error>
sourcepub fn connect(&self) -> Result<(), Error>
pub fn connect(&self) -> Result<(), Error>
Opens the connection to a specified server. The first Pong packet is sent to the server to trigger the Ping-cycle.
sourcepub fn disconnect(&self) -> Result<(), Error>
pub fn disconnect(&self) -> Result<(), Error>
Disconnects the connection.
sourcepub fn is_connected(&self) -> Result<bool, Error>
pub fn is_connected(&self) -> Result<bool, Error>
Check if the underlying transport client is connected.
pub fn iter(&self) -> Iter<'_>ⓘNotable traits for Iter<'a>impl<'a> Iterator for Iter<'a> type Item = Result<Packet, Error>;
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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