pub struct RenewDelegationTokenOptions { /* private fields */ }Expand description
Options for Admin::renew_delegation_token.
Corresponds to
org.apache.kafka.clients.admin.RenewDelegationTokenOptions.
Implementations§
Source§impl RenewDelegationTokenOptions
impl RenewDelegationTokenOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates default options (default API timeout, server-default renew period).
Sourcepub fn set_renew_time_period_ms(self, renew_time_period_ms: i64) -> Self
pub fn set_renew_time_period_ms(self, renew_time_period_ms: i64) -> Self
Sets the renew time period in milliseconds.
Mirrors RenewDelegationTokenOptions.renewTimePeriodMs.
Sourcepub fn renew_time_period_ms(&self) -> i64
pub fn renew_time_period_ms(&self) -> i64
The renew time period in milliseconds.
Mirrors RenewDelegationTokenOptions.renewTimePeriodMs.
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.
Trait Implementations§
Source§impl Clone for RenewDelegationTokenOptions
impl Clone for RenewDelegationTokenOptions
Source§fn clone(&self) -> RenewDelegationTokenOptions
fn clone(&self) -> RenewDelegationTokenOptions
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 RenewDelegationTokenOptions
impl Debug for RenewDelegationTokenOptions
impl Eq for RenewDelegationTokenOptions
impl StructuralPartialEq for RenewDelegationTokenOptions
Auto Trait Implementations§
impl Freeze for RenewDelegationTokenOptions
impl RefUnwindSafe for RenewDelegationTokenOptions
impl Send for RenewDelegationTokenOptions
impl Sync for RenewDelegationTokenOptions
impl Unpin for RenewDelegationTokenOptions
impl UnsafeUnpin for RenewDelegationTokenOptions
impl UnwindSafe for RenewDelegationTokenOptions
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