/// Returns the cached stream position; as well as the `messages_begin`,
/// message count and byte size of the pooled slice originating from the
/// given subnet, if any.
Returns the cached stream position; as well as the `messages_begin`,
message count and byte size of the pooled slice originating from the
given subnet, if any.
Returns the cached stream position ; as well as the ` messages_begin ` message count and byte size of the pooled slice originating from the given subnet if any .
pub fn slice_stats(
        &self,
        subnet_id: SubnetId,
    ) -> (Option<ExpectedIndices>, Option<StreamIndex>, usize, usize) {
        let (messages_begin, message_count, byte_size) =
            if let Some(slice) = self.slices.get(&subnet_id) {
                (
                    slice.payload.messages_begin(),
                    slice.payload.len(),
                    slice.count_bytes(),
                )
            } else {
                Default::default()
            };
        (
            self.stream_positions.get(&subnet_id).cloned(),
            messages_begin,
            message_count,
            byte_size,
        )
    }
pub fn slice_stats ( & self , subnet_id : SubnetId , ) -> ( Option < ExpectedIndices > , Option < StreamIndex > , usize , usize ) { let ( messages_begin , message_count , byte_size ) = if let Some ( slice ) = self . slices . get ( & subnet_id ) { ( slice . payload . messages_begin ( ) , slice . payload . len ( ) , slice . count_bytes ( ) , ) } else { Default :: default ( ) } ; ( self . stream_positions . get ( & subnet_id ) . cloned ( ) , messages_begin , message_count , byte_size , ) }
Returns the cached stream position; as well as the `messages_begin`,
message count and byte size of the pooled slice originating from the
given subnet, if any.
Returns the cached stream position ; as well as the ` messages_begin ` message count and byte size of the pooled slice originating from the given subnet if any .
&self
subnet_id
SubnetId