/// Adds the AT `message` to the queue of outgoing data packets.
/// Returns Error if serialization fails, OK otherwise.
Adds the AT `message` to the queue of outgoing data packets.
Returns Error if serialization fails, OK otherwise.
Adds the AT ` message ` to the queue of outgoing data packets . Returns Error if serialization fails OK otherwise .
fn queue_message_to_peer(&mut self, message: at::Response) -> Result<(), at::SerializeError> {
        let mut bytes = Vec::new();
        message.serialize(&mut bytes)?;
        if let Some(connection) = &mut self.connection {
            connection.queue_data(bytes);
        }
        Ok(())
    }
fn queue_message_to_peer ( & mut self , message : at :: Response ) -> Result < ( ) , at :: SerializeError > { let mut bytes = Vec :: new ( ) ; message . serialize ( & mut bytes ) ? ; if let Some ( connection ) = & mut self . connection { connection . queue_data ( bytes ) ; } Ok ( ( ) ) }
Adds the AT `message` to the queue of outgoing data packets.
Adds the AT ` message ` to the queue of outgoing data packets .
&mut self
message
at::Response