fn close_frame(payload: Vec<u8>) -> NetFrame {
        // let payload = Vec::with_capacity(0);
        Self {
            protocol_version: PROTOCOL_VERSION,
            frame_size: NetFrame::compute_frame_size(&payload),
            frame_type: NetFrameType::Close,
            payload,
        }
    }
/// Close frame should be the last frame sent
Close frame should be the last frame sent
Close frame should be the last frame sent
fn close_frame(payload: Vec<u8>) -> NetFrame {
        // let payload = Vec::with_capacity(0);
        Self {
            protocol_version: PROTOCOL_VERSION,
            frame_size: NetFrame::compute_frame_size(&payload),
            frame_type: NetFrameType::Close,
            payload,
        }
    }
fn close_frame ( payload : Vec < u8 > ) -> NetFrame { // let payload = Vec::with_capacity(0); Self { protocol_version : PROTOCOL_VERSION , frame_size : NetFrame :: compute_frame_size ( & payload ) , frame_type : NetFrameType :: Close , payload , } }
Close frame should be the last frame sent
Close frame should be the last frame sent
payload
Vec<u8>