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 on_received(&mut self, on_received_callback: fn(String, Vec<u8>))
pub fn on_connection_status( &mut self, on_connection_status: fn(SocketConnectionStatus), )
pub fn on_error(&mut self, on_error_callback: fn(SocketClientErrorType))
pub fn connect_with_config(&mut self, config: AddressParser) -> bool
pub fn connect(&mut self) -> bool
pub fn send(&mut self, data: Vec<u8>) -> bool
Auto Trait Implementations§
impl Freeze for SocketClient
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