pub fn send_hello(mut self, socket_id: i32) -> Self {
        self.stack.expect_send().times(1).returning(move |socket, buffer| {
            assert_eq!(socket_id, socket.id);
            assert_eq!("HELLO 3\r\n", String::from_utf8(buffer.to_vec()).unwrap());
            nb::Result::Ok(0)
        });
        self
    }
/// Asserts that HELLO frame is sent
Asserts that HELLO frame is sent
Asserts that HELLO frame is sent
pub fn send_hello(mut self, socket_id: i32) -> Self {
        self.stack.expect_send().times(1).returning(move |socket, buffer| {
            assert_eq!(socket_id, socket.id);
            assert_eq!("HELLO 3\r\n", String::from_utf8(buffer.to_vec()).unwrap());
            nb::Result::Ok(0)
        });
        self
    }
pub fn send_hello ( mut self , socket_id : i32 ) -> Self { self . stack . expect_send ( ) . times ( 1 ) . returning ( move | socket , buffer | { assert_eq ! ( socket_id socket id ) ; assert_eq ! ( " \r \n " String from_utf8 ( buffer to_vec ( ) ) unwrap ( ) ) ; nb :: Result :: Ok ( 0 ) } ) ; self }
Asserts that HELLO frame is sent
Asserts that HELLO frame is sent
mut self
socket_id
i32
mut self
socket_id
i32