Struct goxoy_socket_client::socket_client::SocketClient
source · pub struct SocketClient { /* private fields */ }Implementations§
source§impl SocketClient
impl SocketClient
pub fn new() -> Self
pub fn new_with_config(config: AddressParser) -> Self
pub fn remove_assigned_callback(&mut self)
pub fn assign_callback(&mut self, callback: fn(_: Vec<u8>))
pub fn debug_mode(&mut self, debug: bool)
pub fn connect_with_config(&mut self, config: AddressParser) -> bool
pub fn connect(&mut self) -> bool
pub fn listen(&mut self, how_many_milisecond: u64)
pub fn send(&mut self, data: Vec<u8>) -> bool
pub fn close_connection(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SocketClient
impl Send for SocketClient
impl Sync for SocketClient
impl Unpin for SocketClient
impl UnwindSafe for SocketClient
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