#[repr(C)]pub struct SocketResponse {
pub status: i32,
pub server_socket: i32,
}Expand description
This represents the possible state of the socket response
Fields§
§status: i32This represents the state of the connection.
If -1, then the connection failed
server_socket: i32if the connection was sucesseful, then this will return the int id of the server socket
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SocketResponse
impl RefUnwindSafe for SocketResponse
impl Send for SocketResponse
impl Sync for SocketResponse
impl Unpin for SocketResponse
impl UnwindSafe for SocketResponse
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