pub struct Client<T: Transport> { /* private fields */ }Implementations§
Source§impl<T: Transport> Client<T>
impl<T: Transport> Client<T>
pub fn new(transport: T, server_addr: &str) -> Self
pub fn poll(&mut self)
pub fn recv_event(&mut self) -> Option<ClientEvent>
pub fn send(&self, bytes: &[u8])
pub fn disconnect(&self)
Source§impl<T: Transport + ReliableTransport> Client<T>
impl<T: Transport + ReliableTransport> Client<T>
pub fn send_reliable(&self, bytes: &[u8], ordered: bool)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Client<T>where
T: Freeze,
impl<T> RefUnwindSafe for Client<T>where
T: RefUnwindSafe,
impl<T> Send for Client<T>where
T: Send,
impl<T> Sync for Client<T>where
T: Sync,
impl<T> Unpin for Client<T>where
T: Unpin,
impl<T> UnsafeUnpin for Client<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Client<T>where
T: UnwindSafe,
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