pub fn valid_partition(&self, partition_key: &str) -> Result<Arc<RwLock<Partition>>> {
        let partitions = self.partitions.read();
        partitions
            .get(partition_key)
            .cloned()
            .context(UnknownPartition { partition_key })
    }
/// Return the specified partition or an error if there is no such
/// partition
Return the specified partition or an error if there is no such
partition
Return the specified partition or an error if there is no such partition
pub fn valid_partition(&self, partition_key: &str) -> Result<Arc<RwLock<Partition>>> {
        let partitions = self.partitions.read();
        partitions
            .get(partition_key)
            .cloned()
            .context(UnknownPartition { partition_key })
    }
pub fn valid_partition ( & self , partition_key : & str ) -> Result < Arc < RwLock < Partition > > > { let partitions = self . partitions . read ( ) ; partitions . get ( partition_key ) . cloned ( ) . context ( UnknownPartition { partition_key } ) }
Return the specified partition or an error if there is no such
partition
Return the specified partition or an error if there is no such partition
&self
partition_key
&str
&self
partition_key
&str