pub struct ExpireDelegationTokenOptions { /* private fields */ }Expand description
Options for Admin::expire_delegation_token.
Corresponds to
org.apache.kafka.clients.admin.ExpireDelegationTokenOptions.
Implementations§
Source§impl ExpireDelegationTokenOptions
impl ExpireDelegationTokenOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates default options (default API timeout, expire-immediately
sentinel -1).
Sourcepub fn set_expiry_time_period_ms(self, expiry_time_period_ms: i64) -> Self
pub fn set_expiry_time_period_ms(self, expiry_time_period_ms: i64) -> Self
Sets the time period until the token should expire.
expiry_time_period_ms >= 0: update the expiration timestamp to
min(now + expiry_time_period_ms, max_timestamp). < 0: expire the
token immediately.
Mirrors ExpireDelegationTokenOptions.expiryTimePeriodMs.
Sourcepub fn expiry_time_period_ms(&self) -> i64
pub fn expiry_time_period_ms(&self) -> i64
The time period until the token should expire.
Mirrors ExpireDelegationTokenOptions.expiryTimePeriodMs.
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 ExpireDelegationTokenOptions
impl Clone for ExpireDelegationTokenOptions
Source§fn clone(&self) -> ExpireDelegationTokenOptions
fn clone(&self) -> ExpireDelegationTokenOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExpireDelegationTokenOptions
impl Debug for ExpireDelegationTokenOptions
Source§impl PartialEq for ExpireDelegationTokenOptions
impl PartialEq for ExpireDelegationTokenOptions
Source§fn eq(&self, other: &ExpireDelegationTokenOptions) -> bool
fn eq(&self, other: &ExpireDelegationTokenOptions) -> bool
self and other values to be equal, and is used by ==.impl Eq for ExpireDelegationTokenOptions
impl StructuralPartialEq for ExpireDelegationTokenOptions
Auto Trait Implementations§
impl Freeze for ExpireDelegationTokenOptions
impl RefUnwindSafe for ExpireDelegationTokenOptions
impl Send for ExpireDelegationTokenOptions
impl Sync for ExpireDelegationTokenOptions
impl Unpin for ExpireDelegationTokenOptions
impl UnsafeUnpin for ExpireDelegationTokenOptions
impl UnwindSafe for ExpireDelegationTokenOptions
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
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
§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
key and return true if they are equal.