pub fn connect_error(mut self, socket_id: i32) -> Self {
        self.stack.expect_connect().times(1).returning(move |socket, _| {
            assert_eq!(socket_id, socket.id);
            nb::Result::Err(nb::Error::Other(Error1))
        });
        self
    }
/// Simulates a TCP error while connecting
Simulates a TCP error while connecting
Simulates a TCP error while connecting
pub fn connect_error(mut self, socket_id: i32) -> Self {
        self.stack.expect_connect().times(1).returning(move |socket, _| {
            assert_eq!(socket_id, socket.id);
            nb::Result::Err(nb::Error::Other(Error1))
        });
        self
    }
pub fn connect_error ( mut self , socket_id : i32 ) -> Self { self . stack . expect_connect ( ) . times ( 1 ) . returning ( move | socket , _ | { assert_eq ! ( socket_id socket id ) ; nb :: Result :: Err ( nb :: Error :: Other ( Error1 ) ) } ) ; self }
Simulates a TCP error while connecting
Simulates a TCP error while connecting
mut self
socket_id
i32
mut self
socket_id
i32