/// Pops the previously peeked message.
///
/// Panics:
///  * if there is no message to pop; or
///  * (in debug builds) if the popped message is not the same as the
///    peeked one.
Pops the previously peeked message.
Panics:
if there is no message to pop; or
(in debug builds) if the popped message is not the same as the
peeked one.
Pops the previously peeked message . Panics : if there is no message to pop ; or ( in debug builds ) if the popped message is not the same as the peeked one .
fn validated_next(
            iterator: &mut dyn PeekableOutputIterator,
            (expected_id, expected_index, expected_message): (
                QueueId,
                QueueIndex,
                Arc<RequestOrResponse>,
            ),
        ) -> RequestOrResponse {
            let (queue_id, queue_index, message) = iterator.next().unwrap();
            debug_assert_eq!(
                (queue_id, queue_index, &message),
                (expected_id, expected_index, expected_message.as_ref())
            );
            message
        }
fn validated_next ( iterator : & mut dyn PeekableOutputIterator , ( expected_id , expected_index , expected_message ) : ( QueueId , QueueIndex , Arc < RequestOrResponse > , ) , ) -> RequestOrResponse { let ( queue_id , queue_index , message ) = iterator . next ( ) . unwrap ( ) ; debug_assert_eq ! ( ( queue_id queue_index message ) ( expected_id expected_index expected_message as_ref ( ) ) ) ; message }
Pops the previously peeked message.
Pops the previously peeked message .
iterator
(
                QueueId,
                QueueIndex,
                Arc<RequestOrResponse>,
            )