pub fn put(
        &mut self,
        subnet_id: SubnetId,
        slice: CertifiedStreamSlice,
    ) -> CertifiedSliceResult<()> {
        self.put_impl(subnet_id, slice.try_into()?)
    }
/// Places the provided slice into the pool, after trimming off any prefix
/// before the corresponding `self.stream_positions` entry.
///
/// On success always replaces the pooled slice regardless of its contents,
/// as slices may originate from malicious replicas and we would rather
/// temporarily replace a good slice with a bad one than be stuck with a bad
/// one (e.g. because it has an exceedingly high `signals_end`).
///
/// Returns `Err(InvalidPayload)` or `Err(WitnessPruningFailed)` if
/// `slice` is malformed.
Places the provided slice into the pool, after trimming off any prefix
before the corresponding `self.stream_positions` entry.

On success always replaces the pooled slice regardless of its contents,
as slices may originate from malicious replicas and we would rather
temporarily replace a good slice with a bad one than be stuck with a bad
one .


Places the provided slice into the pool after trimming off any prefix before the corresponding ` self . stream_positions ` entry . On success always replaces the pooled slice regardless of its contents as slices may originate from malicious replicas and we would rather temporarily replace a good slice with a bad one than be stuck with a bad one .
pub fn put(
        &mut self,
        subnet_id: SubnetId,
        slice: CertifiedStreamSlice,
    ) -> CertifiedSliceResult<()> {
        self.put_impl(subnet_id, slice.try_into()?)
    }
pub fn put ( & mut self , subnet_id : SubnetId , slice : CertifiedStreamSlice , ) -> CertifiedSliceResult < ( ) > { self . put_impl ( subnet_id , slice . try_into ( ) ? ) }
Places the provided slice into the pool, after trimming off any prefix
before the corresponding `self.stream_positions` entry.
Places the provided slice into the pool after trimming off any prefix before the corresponding ` self . stream_positions ` entry .
&mut self
subnet_id
SubnetId
slice
CertifiedStreamSlice
&mut self
subnet_id
SubnetId
slice
CertifiedStreamSlice