pub fn write(&mut self, data: &[u8]) {
        trace!("Write: \"{:?}\"", LossyStr(data));

        if self.buf.extend_from_slice(data).is_err() {
            error!("OVERFLOW DATA! Buffer: {:?}", LossyStr(&self.buf));
            self.notify_response(Err(InternalError::Overflow));
        }
    }
/// Write data into the internal buffer raw bytes being the core type allows
/// the ingress manager to be abstracted over the communication medium.
///
/// This function should be called by the UART Rx, either in a receive
/// interrupt, or a DMA interrupt, to move data from the peripheral into the
/// ingress manager receive buffer.
Write data into the internal buffer raw bytes being the core type allows
the ingress manager to be abstracted over the communication medium.

This function should be called by the UART Rx, either in a receive
interrupt, or a DMA interrupt, to move data from the peripheral into the
ingress manager receive buffer.
Write data into the internal buffer raw bytes being the core type allows the ingress manager to be abstracted over the communication medium . This function should be called by the UART Rx either in a receive interrupt or a DMA interrupt to move data from the peripheral into the ingress manager receive buffer .
pub fn write(&mut self, data: &[u8]) {
        trace!("Write: \"{:?}\"", LossyStr(data));
        if self.buf.extend_from_slice(data).is_err() {
            error!("OVERFLOW DATA! Buffer: {:?}", LossyStr(&self.buf));
            self.notify_response(Err(InternalError::Overflow));
        }
    }
pub fn write ( & mut self , data : & [ u8 ] ) { trace ! ( " \" \" " LossyStr ( data ) ) ; if self . buf . extend_from_slice ( data ) . is_err ( ) { error ! ( " " LossyStr ( self buf ) ) ; self . notify_response ( Err ( InternalError :: Overflow ) ) ; } }
Write data into the internal buffer raw bytes being the core type allows
the ingress manager to be abstracted over the communication medium.
Write data into the internal buffer raw bytes being the core type allows the ingress manager to be abstracted over the communication medium .
&mut self
data
&[u8]
&mut self
data
&[u8]