pub fn socket(mut self, socket_id: i32) -> Self {
        self.stack
            .expect_socket()
            .times(1)
            .returning(move || Ok(SocketMock::new(socket_id)));
        self
    }
/// Expects to return a socket with the given ID
Expects to return a socket with the given ID
Expects to return a socket with the given ID
pub fn socket(mut self, socket_id: i32) -> Self {
        self.stack
            .expect_socket()
            .times(1)
            .returning(move || Ok(SocketMock::new(socket_id)));
        self
    }
pub fn socket ( mut self , socket_id : i32 ) -> Self { self . stack . expect_socket ( ) . times ( 1 ) . returning ( move | | Ok ( SocketMock :: new ( socket_id ) ) ) ; self }
Expects to return a socket with the given ID
Expects to return a socket with the given ID
mut self
socket_id
i32
mut self
socket_id
i32