fn size_bytes(queue: &VecDeque<Arc<Ingress>>) -> usize {
        size_of::<Self>()
            + queue
                .iter()
                .map(|i| Self::ingress_size_bytes(i))
                .sum::<usize>()
    }
/// Calculates the size in bytes of an `IngressQueue` holding the given
/// ingress messages.
///
/// Time complexity: O(num_messages).
Calculates the size in bytes of an `IngressQueue` holding the given
ingress messages.


Calculates the size in bytes of an ` IngressQueue ` holding the given ingress messages .
fn size_bytes(queue: &VecDeque<Arc<Ingress>>) -> usize {
        size_of::<Self>()
            + queue
                .iter()
                .map(|i| Self::ingress_size_bytes(i))
                .sum::<usize>()
    }
fn size_bytes ( queue : & VecDeque < Arc < Ingress > > ) -> usize { size_of :: < Self > ( ) + queue . iter ( ) . map ( | i | Self :: ingress_size_bytes ( i ) ) . sum :: < usize > ( ) }
Calculates the size in bytes of an `IngressQueue` holding the given
ingress messages.
Calculates the size in bytes of an ` IngressQueue ` holding the given ingress messages .
queue
&VecDeque<Arc<Ingress>>
queue
&VecDeque<Arc<Ingress>>