pub fn request(&mut self, header: Header, message: &'buf [u8]) {
        self.0.rx_header = Some(header);
        self.0.rx = message;

        // Should be Cursor::seek when we get that.
        self.0.tx_header = None;
        let _ = self.0.tx.take_consumed_bytes();
        self.0.finished = false;
    }
/// Schedules a new request to be recieved, with the given request parts.
///
/// Calling this function will make `recieve()` start working; otherwise,
/// it will assert that the port is disconnected.
Schedules a new request to be recieved, with the given request parts.
Calling this function will make `recieve()` start working; otherwise,
it will assert that the port is disconnected.
Schedules a new request to be recieved with the given request parts . Calling this function will make ` recieve () ` start working ; otherwise it will assert that the port is disconnected .
pub fn request(&mut self, header: Header, message: &'buf [u8]) {
        self.0.rx_header = Some(header);
        self.0.rx = message;
        // Should be Cursor::seek when we get that.
        self.0.tx_header = None;
        let _ = self.0.tx.take_consumed_bytes();
        self.0.finished = false;
    }
pub fn request ( & mut self , header : Header , message : & ' buf [ u8 ] ) { self . 0 . rx_header = Some ( header ) ; self . 0 . rx = message ; // Should be Cursor::seek when we get that. self . 0 . tx_header = None ; let _ = self . 0 . tx . take_consumed_bytes ( ) ; self . 0 . finished = false ; }
Schedules a new request to be recieved, with the given request parts.
Schedules a new request to be recieved with the given request parts .
&mut self
header
Header
message
&'buf [u8]
&mut self
header
Header
message
&'buf [u8]