pub struct DescribeProducersOptions { /* private fields */ }Expand description
Options for Admin::describe_producers.
Corresponds to org.apache.kafka.clients.admin.DescribeProducersOptions.
When broker_id is set, the request is sent directly to
that broker (via StaticBrokerStrategy) rather than looking up each
partition’s leader.
Implementations§
Source§impl DescribeProducersOptions
impl DescribeProducersOptions
Sourcepub fn set_timeout_ms(self, timeout_ms: Option<i32>) -> Self
pub fn set_timeout_ms(self, timeout_ms: Option<i32>) -> Self
Set the timeout in milliseconds for this operation, or None to use the
default API timeout for the AdminClient.
Sourcepub fn timeout_ms(&self) -> Option<i32>
pub fn timeout_ms(&self) -> Option<i32>
The timeout in milliseconds for this operation, or None if the default
API timeout should be used.
Sourcepub fn set_broker_id(self, broker_id: i32) -> Self
pub fn set_broker_id(self, broker_id: i32) -> Self
Set the broker id to query for the topic partitions. Mirrors
DescribeProducersOptions.brokerId(int).
Trait Implementations§
Source§impl Clone for DescribeProducersOptions
impl Clone for DescribeProducersOptions
Source§fn clone(&self) -> DescribeProducersOptions
fn clone(&self) -> DescribeProducersOptions
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 DescribeProducersOptions
impl Debug for DescribeProducersOptions
Source§impl Default for DescribeProducersOptions
impl Default for DescribeProducersOptions
Source§fn default() -> DescribeProducersOptions
fn default() -> DescribeProducersOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for DescribeProducersOptions
impl PartialEq for DescribeProducersOptions
impl Eq for DescribeProducersOptions
impl StructuralPartialEq for DescribeProducersOptions
Auto Trait Implementations§
impl Freeze for DescribeProducersOptions
impl RefUnwindSafe for DescribeProducersOptions
impl Send for DescribeProducersOptions
impl Sync for DescribeProducersOptions
impl Unpin for DescribeProducersOptions
impl UnsafeUnpin for DescribeProducersOptions
impl UnwindSafe for DescribeProducersOptions
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