fn notify_urc(&mut self, resp: Vec<u8, BUF_LEN>) {
        debug!("Received response: \"{:?}\"", LossyStr(&resp));

        if let Ok(mut grant) = self.urc_p.grant(resp.len()) {
            grant.copy_from_slice(resp.as_ref());
            grant.commit(resp.len());
        } else {
            // FIXME: Handle queue being full
            error!("URC queue full!");
        }
    }
/// Notify the client that an unsolicited response code (URC) has been
/// received
Notify the client that an unsolicited response code (URC) has been
received
Notify the client that an unsolicited response code ( URC ) has been received
fn notify_urc(&mut self, resp: Vec<u8, BUF_LEN>) {
        debug!("Received response: \"{:?}\"", LossyStr(&resp));
        if let Ok(mut grant) = self.urc_p.grant(resp.len()) {
            grant.copy_from_slice(resp.as_ref());
            grant.commit(resp.len());
        } else {
            // FIXME: Handle queue being full
            error!("URC queue full!");
        }
    }
fn notify_urc ( & mut self , resp : Vec < u8 , BUF_LEN > ) { debug ! ( " \" \" " LossyStr ( resp ) ) ; if let Ok ( mut grant ) = self . urc_p . grant ( resp . len ( ) ) { grant . copy_from_slice ( resp . as_ref ( ) ) ; grant . commit ( resp . len ( ) ) ; } else { // FIXME: Handle queue being full error ! ( " " ) ; } }
Notify the client that an unsolicited response code (URC) has been
received
Notify the client that an unsolicited response code ( URC ) has been received
&mut self
resp
Vec<u8, BUF_LEN>
&mut self
resp
Vec<u8, BUF_LEN>