Lines Matching refs:M
555 pub(crate) fn send_command<M>(&self, bar: &Bar0, command: M) -> Result<M::Reply> in send_command()
557 M: CommandToGsp, in send_command()
558 M::Reply: MessageFromGsp, in send_command()
559 Error: From<M::InitError>, in send_command()
560 Error: From<<M::Reply as MessageFromGsp>::InitError>, in send_command()
566 match inner.receive_msg::<M::Reply>(Self::RECEIVE_TIMEOUT) { in send_command()
583 pub(crate) fn send_command_no_wait<M>(&self, bar: &Bar0, command: M) -> Result in send_command_no_wait()
585 M: CommandToGsp<Reply = NoReply>, in send_command_no_wait()
586 Error: From<M::InitError>, in send_command_no_wait()
594 pub(crate) fn receive_msg<M: MessageFromGsp>(&self, timeout: Delta) -> Result<M> in receive_msg()
597 Error: From<M::InitError>, in receive_msg()
627 fn send_single_command<M>(&mut self, bar: &Bar0, command: M) -> Result in send_single_command()
629 M: CommandToGsp, in send_single_command()
631 Error: From<M::InitError>, in send_single_command()
641 let (cmd, payload_1) = M::Command::from_bytes_mut_prefix(dst.contents.0).ok_or(EIO)?; in send_single_command()
644 let msg_element = GspMsgElement::init(self.seq, size_in_bytes, M::FUNCTION); in send_single_command()
673 M::FUNCTION, in send_single_command()
697 fn send_command<M>(&mut self, bar: &Bar0, command: M) -> Result in send_command()
699 M: CommandToGsp, in send_command()
700 Error: From<M::InitError>, in send_command()
813 fn receive_msg<M: MessageFromGsp>(&mut self, timeout: Delta) -> Result<M> in receive_msg()
816 Error: From<M::InitError>, in receive_msg()
823 let result = if function == M::FUNCTION { in receive_msg()
824 let (cmd, contents_1) = M::Message::from_bytes_prefix(message.contents.0).ok_or(EIO)?; in receive_msg()
827 M::read(cmd, &mut sbuffer) in receive_msg()