Enum rdkafka::admin::ResourceSpecifier
source · pub enum ResourceSpecifier<'a> {
Topic(&'a str),
Group(&'a str),
Broker(i32),
}
Expand description
Specification of a configurable resource.
Variants§
Topic(&'a str)
A topic resource, identified by its name.
Group(&'a str)
A group resource, identified by its ID.
Broker(i32)
A broker resource, identified by its ID.
Trait Implementations§
source§impl<'a> Clone for ResourceSpecifier<'a>
impl<'a> Clone for ResourceSpecifier<'a>
source§fn clone(&self) -> ResourceSpecifier<'a>
fn clone(&self) -> ResourceSpecifier<'a>
Returns a copy 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<'a> Debug for ResourceSpecifier<'a>
impl<'a> Debug for ResourceSpecifier<'a>
source§impl<'a> PartialEq for ResourceSpecifier<'a>
impl<'a> PartialEq for ResourceSpecifier<'a>
impl<'a> Copy for ResourceSpecifier<'a>
impl<'a> Eq for ResourceSpecifier<'a>
impl<'a> StructuralPartialEq for ResourceSpecifier<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResourceSpecifier<'a>
impl<'a> RefUnwindSafe for ResourceSpecifier<'a>
impl<'a> Send for ResourceSpecifier<'a>
impl<'a> Sync for ResourceSpecifier<'a>
impl<'a> Unpin for ResourceSpecifier<'a>
impl<'a> UnwindSafe for ResourceSpecifier<'a>
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.