pub struct ClusterResource { /* private fields */ }Expand description
The ClusterResource class encapsulates metadata for a Kafka cluster.
Implementations§
Source§impl ClusterResource
impl ClusterResource
Sourcepub fn new(cluster_id: Option<String>) -> Self
pub fn new(cluster_id: Option<String>) -> Self
Create a ClusterResource with a cluster id. Note that cluster id may be None if the
metadata request was sent to a broker without support for cluster ids.
Sourcepub fn cluster_id(&self) -> Option<&str>
pub fn cluster_id(&self) -> Option<&str>
Return the cluster id. Note that it may be None if the metadata request was sent to a
broker without support for cluster ids.
Trait Implementations§
Source§impl Clone for ClusterResource
impl Clone for ClusterResource
Source§fn clone(&self) -> ClusterResource
fn clone(&self) -> ClusterResource
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 ClusterResource
impl Debug for ClusterResource
Source§impl Display for ClusterResource
impl Display for ClusterResource
Source§impl Hash for ClusterResource
impl Hash for ClusterResource
Source§impl PartialEq for ClusterResource
impl PartialEq for ClusterResource
impl Eq for ClusterResource
impl StructuralPartialEq for ClusterResource
Auto Trait Implementations§
impl Freeze for ClusterResource
impl RefUnwindSafe for ClusterResource
impl Send for ClusterResource
impl Sync for ClusterResource
impl Unpin for ClusterResource
impl UnsafeUnpin for ClusterResource
impl UnwindSafe for ClusterResource
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