pub struct SupportedVersionRange { /* private fields */ }Expand description
Represents a range of versions that a particular broker supports for some feature.
Corresponds to org.apache.kafka.clients.admin.SupportedVersionRange.
Implementations§
Source§impl SupportedVersionRange
impl SupportedVersionRange
Sourcepub fn new(min_version: i16, max_version: i16) -> Result<Self, Error>
pub fn new(min_version: i16, max_version: i16) -> Result<Self, Error>
Creates a new SupportedVersionRange.
§Errors
Returns Error::local_illegal_argument (mirroring Java’s
IllegalArgumentException) unless 0 <= min_version <= max_version.
Sourcepub fn min_version(&self) -> i16
pub fn min_version(&self) -> i16
Returns the minimum version value.
Sourcepub fn max_version(&self) -> i16
pub fn max_version(&self) -> i16
Returns the maximum version value.
Trait Implementations§
Source§impl Clone for SupportedVersionRange
impl Clone for SupportedVersionRange
Source§fn clone(&self) -> SupportedVersionRange
fn clone(&self) -> SupportedVersionRange
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 SupportedVersionRange
impl Debug for SupportedVersionRange
Source§impl Display for SupportedVersionRange
impl Display for SupportedVersionRange
Source§impl Hash for SupportedVersionRange
impl Hash for SupportedVersionRange
Source§impl PartialEq for SupportedVersionRange
impl PartialEq for SupportedVersionRange
impl Copy for SupportedVersionRange
impl Eq for SupportedVersionRange
impl StructuralPartialEq for SupportedVersionRange
Auto Trait Implementations§
impl Freeze for SupportedVersionRange
impl RefUnwindSafe for SupportedVersionRange
impl Send for SupportedVersionRange
impl Sync for SupportedVersionRange
impl Unpin for SupportedVersionRange
impl UnsafeUnpin for SupportedVersionRange
impl UnwindSafe for SupportedVersionRange
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