pub struct CreatePartitionsOptions { /* private fields */ }Expand description
Options for Admin::create_partitions.
Implementations§
Source§impl CreatePartitionsOptions
impl CreatePartitionsOptions
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 validate_only(&self) -> bool
pub fn validate_only(&self) -> bool
Returns true if the request should be validated without creating new partitions.
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 CreatePartitionsOptions
impl Clone for CreatePartitionsOptions
Source§fn clone(&self) -> CreatePartitionsOptions
fn clone(&self) -> CreatePartitionsOptions
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 CreatePartitionsOptions
impl Debug for CreatePartitionsOptions
Auto Trait Implementations§
impl Freeze for CreatePartitionsOptions
impl RefUnwindSafe for CreatePartitionsOptions
impl Send for CreatePartitionsOptions
impl Sync for CreatePartitionsOptions
impl Unpin for CreatePartitionsOptions
impl UnsafeUnpin for CreatePartitionsOptions
impl UnwindSafe for CreatePartitionsOptions
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