pub struct FeatureMetadata { /* private fields */ }Expand description
Encapsulates details about finalized as well as supported features.
This is particularly useful to hold the result returned by the
describe_features_with_options API.
Corresponds to org.apache.kafka.clients.admin.FeatureMetadata.
Implementations§
Source§impl FeatureMetadata
impl FeatureMetadata
Sourcepub fn finalized_features(&self) -> &HashMap<String, FinalizedVersionRange>
pub fn finalized_features(&self) -> &HashMap<String, FinalizedVersionRange>
Returns a map of finalized feature versions. Each entry contains a feature name and the range of version levels supported by every broker in the cluster.
Sourcepub fn finalized_features_epoch(&self) -> Option<i64>
pub fn finalized_features_epoch(&self) -> Option<i64>
The epoch for the finalized features. If empty, the finalized features are absent/unavailable.
Sourcepub fn supported_features(&self) -> &HashMap<String, SupportedVersionRange>
pub fn supported_features(&self) -> &HashMap<String, SupportedVersionRange>
Returns a map of supported feature versions. Each entry contains a feature name and the range of versions supported by a particular broker in the cluster.
Trait Implementations§
Source§impl Clone for FeatureMetadata
impl Clone for FeatureMetadata
Source§fn clone(&self) -> FeatureMetadata
fn clone(&self) -> FeatureMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FeatureMetadata
impl Debug for FeatureMetadata
Source§impl Display for FeatureMetadata
impl Display for FeatureMetadata
Source§impl PartialEq for FeatureMetadata
impl PartialEq for FeatureMetadata
impl Eq for FeatureMetadata
impl StructuralPartialEq for FeatureMetadata
Auto Trait Implementations§
impl Freeze for FeatureMetadata
impl RefUnwindSafe for FeatureMetadata
impl Send for FeatureMetadata
impl Sync for FeatureMetadata
impl Unpin for FeatureMetadata
impl UnsafeUnpin for FeatureMetadata
impl UnwindSafe for FeatureMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more