pub struct FinalizedVersionRange { /* private fields */ }Expand description
Represents a range of version levels supported by every broker in a cluster for some feature.
Implementations§
Source§impl FinalizedVersionRange
impl FinalizedVersionRange
Sourcepub fn new(
min_version_level: i16,
max_version_level: i16,
) -> Result<Self, Error>
pub fn new( min_version_level: i16, max_version_level: i16, ) -> Result<Self, Error>
Raises an error unless the following condition is met: min_version_level >= 0 and
max_version_level >= 0 and max_version_level >= min_version_level.
§Arguments
min_version_level- The minimum version level value.max_version_level- The maximum version level value.
§Errors
Error::is_local_illegal_argument_errorRaised when the condition described above is not met.
§Translation notes
Java’s Javadoc says >= 1; Java’s code, like this one, checks >= 0.
Sourcepub fn min_version_level(&self) -> i16
pub fn min_version_level(&self) -> i16
Returns the minimum version level value.
Sourcepub fn max_version_level(&self) -> i16
pub fn max_version_level(&self) -> i16
Returns the maximum version level value.
Trait Implementations§
Source§impl Clone for FinalizedVersionRange
impl Clone for FinalizedVersionRange
Source§fn clone(&self) -> FinalizedVersionRange
fn clone(&self) -> FinalizedVersionRange
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 FinalizedVersionRange
impl Debug for FinalizedVersionRange
Source§impl Display for FinalizedVersionRange
impl Display for FinalizedVersionRange
Source§impl Hash for FinalizedVersionRange
impl Hash for FinalizedVersionRange
Source§impl PartialEq for FinalizedVersionRange
impl PartialEq for FinalizedVersionRange
impl Eq for FinalizedVersionRange
impl StructuralPartialEq for FinalizedVersionRange
Auto Trait Implementations§
impl Freeze for FinalizedVersionRange
impl RefUnwindSafe for FinalizedVersionRange
impl Send for FinalizedVersionRange
impl Sync for FinalizedVersionRange
impl Unpin for FinalizedVersionRange
impl UnsafeUnpin for FinalizedVersionRange
impl UnwindSafe for FinalizedVersionRange
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