Struct rdkafka::admin::AdminOptions
source · pub struct AdminOptions { /* private fields */ }
Expand description
Options for an admin API request.
Implementations§
source§impl AdminOptions
impl AdminOptions
sourcepub fn new() -> AdminOptions
pub fn new() -> AdminOptions
Creates a new AdminOptions
.
sourcepub fn request_timeout<T: Into<Timeout>>(self, timeout: Option<T>) -> Self
pub fn request_timeout<T: Into<Timeout>>(self, timeout: Option<T>) -> Self
Sets the overall request timeout, including broker lookup, request transmission, operation time on broker, and response.
Defaults to the socket.timeout.ms
configuration parameter.
sourcepub fn operation_timeout<T: Into<Timeout>>(self, timeout: Option<T>) -> Self
pub fn operation_timeout<T: Into<Timeout>>(self, timeout: Option<T>) -> Self
Sets the broker’s operation timeout, such as the timeout for CreateTopics to complete the creation of topics on the controller before returning a result to the application.
If unset (the default), the API calls will return immediately after triggering the operation.
Only the CreateTopics, DeleteTopics, and CreatePartitions API calls respect this option.
sourcepub fn validate_only(self, validate_only: bool) -> Self
pub fn validate_only(self, validate_only: bool) -> Self
Tells the broker to only validate the request, without performing the requested operation.
Defaults to false.
Trait Implementations§
source§impl Default for AdminOptions
impl Default for AdminOptions
source§fn default() -> AdminOptions
fn default() -> AdminOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AdminOptions
impl RefUnwindSafe for AdminOptions
impl Send for AdminOptions
impl Sync for AdminOptions
impl Unpin for AdminOptions
impl UnwindSafe for AdminOptions
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