/// Adds the sequence of AT `messages` to the queue of outgoing data packets, logging if
/// there is a serialization error.
Adds the sequence of AT `messages` to the queue of outgoing data packets, logging if
there is a serialization error.
Adds the sequence of AT ` messages ` to the queue of outgoing data packets logging if there is a serialization error .
fn queue_messages_to_peer(&mut self, mut messages: Vec<at::Response>) {
        while !messages.is_empty() {
            match self.queue_messages_to_peer_until_error(&messages) {
                Ok(()) => break, // Successfully sent all messages.
                Err(err) => {
                    warn!("Unable to serialize AT response with {:?}, {:?}", err.cause, err.failed);
                    messages = err.remaining;
                }
            }
        }
    }
fn queue_messages_to_peer ( & mut self , mut messages : Vec < at :: Response > ) { while ! messages . is_empty ( ) { match self . queue_messages_to_peer_until_error ( & messages ) { Ok ( ( ) ) => break , // Successfully sent all messages. Err ( err ) => { warn ! ( " " err cause err failed ) ; messages = err . remaining ; } } } }
Adds the sequence of AT `messages` to the queue of outgoing data packets, logging if
there is a serialization error.
Adds the sequence of AT ` messages ` to the queue of outgoing data packets logging if there is a serialization error .
&mut self
messages
Vec<at::Response>