/// Asserts that the given stream contains the full expected client preface: the preface bytes,
/// settings frame, and settings ack frame.
Asserts that the given stream contains the full expected client preface: the preface bytes,
settings frame, and settings ack frame.
Asserts that the given stream contains the full expected client preface : the preface bytes settings frame and settings ack frame .
fn assert_client_preface(server_stream: &mut MockStream) {
        // Skip client preface
        server_stream.read(&mut [0; 24]).unwrap();
        // The first frame are the settings
        assert!(match server_stream.recv_frame().unwrap() {
            HttpFrame::SettingsFrame(_) => true,
            _ => false,
        });
        // Now the ACK to the server's settings.
        assert!(match server_stream.recv_frame().unwrap() {
            HttpFrame::SettingsFrame(_) => true,
            _ => false,
        });
    }
fn assert_client_preface ( server_stream : & mut MockStream ) { // Skip client preface server_stream . read ( & mut [ 0 ; 24 ] ) . unwrap ( ) ; // The first frame are the settings assert ! ( match server_stream recv_frame ( ) unwrap ( ) { HttpFrame SettingsFrame ( ) true false } ) ; // Now the ACK to the server's settings. assert ! ( match server_stream recv_frame ( ) unwrap ( ) { HttpFrame SettingsFrame ( ) true false } ) ; }
Asserts that the given stream contains the full expected client preface: the preface bytes,
settings frame, and settings ack frame.
Asserts that the given stream contains the full expected client preface : the preface bytes settings frame and settings ack frame .
server_stream
&mut MockStream