fn cancel_push_from_server() {
        let mut s = Session::default().unwrap();
        s.handshake().unwrap();

        s.send_frame_server(
            frame::Frame::CancelPush { push_id: 1 },
            s.server.control_stream_id.unwrap(),
            false,
        )
        .unwrap();

        assert_eq!(s.poll_client(), Err(Error::Done));
    }
/// Send a CANCEL_PUSH frame from the client.
Send a CANCEL_PUSH frame from the client.
Send a CANCEL_PUSH frame from the client .
fn cancel_push_from_server() {
        let mut s = Session::default().unwrap();
        s.handshake().unwrap();
        s.send_frame_server(
            frame::Frame::CancelPush { push_id: 1 },
            s.server.control_stream_id.unwrap(),
            false,
        )
        .unwrap();
        assert_eq!(s.poll_client(), Err(Error::Done));
    }
fn cancel_push_from_server ( ) { let mut s = Session :: default ( ) . unwrap ( ) ; s . handshake ( ) . unwrap ( ) ; s . send_frame_server ( frame :: Frame :: CancelPush { push_id : 1 } , s . server . control_stream_id . unwrap ( ) , false , ) . unwrap ( ) ; assert_eq ! ( s poll_client ( ) Err ( Error Done ) ) ; }
Send a CANCEL_PUSH frame from the client.
Send a CANCEL_PUSH frame from the client .