pub fn expect_is_connected_error(mut self, socket_id: i32) -> Self {
        self.stack.expect_is_connected().times(1).returning(move |socket| {
            assert_eq!(socket_id, socket.id);
            Err(Error1)
        });
        self
    }
/// Simulates an error on is_connected call
Simulates an error on is_connected call
Simulates an error on is_connected call
pub fn expect_is_connected_error(mut self, socket_id: i32) -> Self {
        self.stack.expect_is_connected().times(1).returning(move |socket| {
            assert_eq!(socket_id, socket.id);
            Err(Error1)
        });
        self
    }
pub fn expect_is_connected_error ( mut self , socket_id : i32 ) -> Self { self . stack . expect_is_connected ( ) . times ( 1 ) . returning ( move | socket | { assert_eq ! ( socket_id socket id ) ; Err ( Error1 ) } ) ; self }
Simulates an error on is_connected call
Simulates an error on is_connected call
mut self
socket_id
i32
mut self
socket_id
i32