pub struct ClientQuotaEntity { /* private fields */ }Expand description
A compound Kafka client quota entity.
Implementations§
Source§impl ClientQuotaEntity
impl ClientQuotaEntity
Sourcepub fn new(
components: impl IntoIterator<Item = ClientQuotaEntityComponent>,
) -> Self
pub fn new( components: impl IntoIterator<Item = ClientQuotaEntityComponent>, ) -> Self
Creates a quota entity from its components.
Sourcepub fn client_id(name: impl Into<String>) -> Self
pub fn client_id(name: impl Into<String>) -> Self
Creates a quota entity for one Kafka client ID.
Sourcepub fn components(&self) -> &[ClientQuotaEntityComponent]
pub fn components(&self) -> &[ClientQuotaEntityComponent]
Returns the entity components.
Trait Implementations§
Source§impl Clone for ClientQuotaEntity
impl Clone for ClientQuotaEntity
Source§fn clone(&self) -> ClientQuotaEntity
fn clone(&self) -> ClientQuotaEntity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClientQuotaEntity
impl Debug for ClientQuotaEntity
impl Eq for ClientQuotaEntity
Source§impl PartialEq for ClientQuotaEntity
impl PartialEq for ClientQuotaEntity
impl StructuralPartialEq for ClientQuotaEntity
Auto Trait Implementations§
impl Freeze for ClientQuotaEntity
impl RefUnwindSafe for ClientQuotaEntity
impl Send for ClientQuotaEntity
impl Sync for ClientQuotaEntity
impl Unpin for ClientQuotaEntity
impl UnsafeUnpin for ClientQuotaEntity
impl UnwindSafe for ClientQuotaEntity
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