pub struct FeatureUpdate { /* private fields */ }Expand description
Encapsulates details about an update to a finalized feature.
Corresponds to org.apache.kafka.clients.admin.FeatureUpdate.
Implementations§
Source§impl FeatureUpdate
impl FeatureUpdate
Sourcepub fn new(
max_version_level: i16,
upgrade_type: UpgradeType,
) -> Result<Self, Error>
pub fn new( max_version_level: i16, upgrade_type: UpgradeType, ) -> Result<Self, Error>
Creates a new FeatureUpdate.
max_version_level is the new maximum version level for the finalized
feature. A value of zero is special and indicates that the update is
intended to delete the finalized feature, and should be accompanied by
setting upgrade_type to a safe or unsafe downgrade.
§Errors
Returns Error::local_illegal_argument (mirroring Java’s
IllegalArgumentException) if max_version_level is zero while
upgrade_type is UpgradeType::Upgrade, or if max_version_level is
negative.
Sourcepub fn max_version_level(&self) -> i16
pub fn max_version_level(&self) -> i16
Returns the new maximum version level for the finalized feature.
Sourcepub fn upgrade_type(&self) -> UpgradeType
pub fn upgrade_type(&self) -> UpgradeType
Returns the upgrade type for this update.
Trait Implementations§
Source§impl Clone for FeatureUpdate
impl Clone for FeatureUpdate
Source§fn clone(&self) -> FeatureUpdate
fn clone(&self) -> FeatureUpdate
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 FeatureUpdate
impl Debug for FeatureUpdate
Source§impl Display for FeatureUpdate
impl Display for FeatureUpdate
Source§impl Hash for FeatureUpdate
impl Hash for FeatureUpdate
Source§impl PartialEq for FeatureUpdate
impl PartialEq for FeatureUpdate
impl Copy for FeatureUpdate
impl Eq for FeatureUpdate
impl StructuralPartialEq for FeatureUpdate
Auto Trait Implementations§
impl Freeze for FeatureUpdate
impl RefUnwindSafe for FeatureUpdate
impl Send for FeatureUpdate
impl Sync for FeatureUpdate
impl Unpin for FeatureUpdate
impl UnsafeUnpin for FeatureUpdate
impl UnwindSafe for FeatureUpdate
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