fn build(&self, msg_type: MsgType, req_cmd: Option<ReqCmd>) -> Request {
        let cqc_hdr = CqcHdr {
            version: Version::V2,
            msg_type: msg_type,
            app_id: self.app_id,
            length: match req_cmd {
                Some(ref req) => req.len(),
                None => 0,
            },
        };

        Request { cqc_hdr, req_cmd }
    }
/// Build a basic CQC request.
Build a basic CQC request.
Build a basic CQC request .
fn build(&self, msg_type: MsgType, req_cmd: Option<ReqCmd>) -> Request {
        let cqc_hdr = CqcHdr {
            version: Version::V2,
            msg_type: msg_type,
            app_id: self.app_id,
            length: match req_cmd {
                Some(ref req) => req.len(),
                None => 0,
            },
        };
        Request { cqc_hdr, req_cmd }
    }
fn build ( & self , msg_type : MsgType , req_cmd : Option < ReqCmd > ) -> Request { let cqc_hdr = CqcHdr { version : Version :: V2 , msg_type : msg_type , app_id : self . app_id , length : match req_cmd { Some ( ref req ) => req . len ( ) , None => 0 , } , } ; Request { cqc_hdr , req_cmd } }
Build a basic CQC request.
Build a basic CQC request .
&self
msg_type
MsgType
req_cmd
Option<ReqCmd>
&self
msg_type
MsgType
req_cmd
Option<ReqCmd>