Struct victorem::ClientSocket
source · pub struct ClientSocket { /* private fields */ }
Expand description
Client used to communicate with server. Must be singleton in your app
Implementations
sourceimpl ClientSocket
impl ClientSocket
sourcepub fn new(port: &str, server_address: &str) -> Result<ClientSocket, Exception>
pub fn new(port: &str, server_address: &str) -> Result<ClientSocket, Exception>
Create new client and listen on port to recv packets from server_address and send its to them
Auto Trait Implementations
impl RefUnwindSafe for ClientSocket
impl Send for ClientSocket
impl Sync for ClientSocket
impl Unpin for ClientSocket
impl UnwindSafe for ClientSocket
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