pub struct CreateTopicsOptions { /* private fields */ }Expand description
Options for Admin::create_topics.
Implementations§
Source§impl CreateTopicsOptions
impl CreateTopicsOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates default options (validate_only=false,
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
Sourcepub fn timeout_ms(&self) -> Option<i32>
pub fn timeout_ms(&self) -> Option<i32>
Returns the timeout in milliseconds for this operation, or None if the
default API timeout for the AdminClient should be used.
Sourcepub fn set_validate_only(self, validate_only: bool) -> Self
pub fn set_validate_only(self, validate_only: bool) -> Self
Sourcepub fn should_validate_only(&self) -> bool
pub fn should_validate_only(&self) -> bool
Returns true if the request should be validated without creating the topic.
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
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 CreateTopicsOptions
impl Clone for CreateTopicsOptions
Source§fn clone(&self) -> CreateTopicsOptions
fn clone(&self) -> CreateTopicsOptions
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 CreateTopicsOptions
impl Debug for CreateTopicsOptions
Auto Trait Implementations§
impl Freeze for CreateTopicsOptions
impl RefUnwindSafe for CreateTopicsOptions
impl Send for CreateTopicsOptions
impl Sync for CreateTopicsOptions
impl Unpin for CreateTopicsOptions
impl UnsafeUnpin for CreateTopicsOptions
impl UnwindSafe for CreateTopicsOptions
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