pub struct DeleteTopicsOptions { /* private fields */ }Expand description
Options for Admin::delete_topics.
Corresponds to org.apache.kafka.clients.admin.DeleteTopicsOptions.
Implementations§
Source§impl DeleteTopicsOptions
impl DeleteTopicsOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates default options (retry_on_quota_violation=true, default API
timeout).
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_retry_on_quota_violation(
self,
retry_on_quota_violation: bool,
) -> Self
pub fn set_retry_on_quota_violation( self, retry_on_quota_violation: bool, ) -> Self
Set to true if quota violation should be automatically retried.
Sourcepub fn should_retry_on_quota_violation(&self) -> bool
pub fn should_retry_on_quota_violation(&self) -> bool
Returns true if quota violation should be automatically retried.
Trait Implementations§
Source§impl Clone for DeleteTopicsOptions
impl Clone for DeleteTopicsOptions
Source§fn clone(&self) -> DeleteTopicsOptions
fn clone(&self) -> DeleteTopicsOptions
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 DeleteTopicsOptions
impl Debug for DeleteTopicsOptions
Source§impl Default for DeleteTopicsOptions
impl Default for DeleteTopicsOptions
Source§impl PartialEq for DeleteTopicsOptions
impl PartialEq for DeleteTopicsOptions
impl Eq for DeleteTopicsOptions
impl StructuralPartialEq for DeleteTopicsOptions
Auto Trait Implementations§
impl Freeze for DeleteTopicsOptions
impl RefUnwindSafe for DeleteTopicsOptions
impl Send for DeleteTopicsOptions
impl Sync for DeleteTopicsOptions
impl Unpin for DeleteTopicsOptions
impl UnsafeUnpin for DeleteTopicsOptions
impl UnwindSafe for DeleteTopicsOptions
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