Struct rdkafka::client::OAuthTokenData
source · [−]pub struct OAuthTokenData { /* private fields */ }
Expand description
OAuthToken Data
When using token refresh, this data structure provides the fields used in the OAuth token refresh callback function.
NOTE: SASL extensions are not currently supported
Implementations
sourceimpl OAuthTokenData
impl OAuthTokenData
sourcepub fn new(token: String, lifetime_ms: i64, principal_name: String) -> Self
pub fn new(token: String, lifetime_ms: i64, principal_name: String) -> Self
Creates a new token data structure, with given value, lifetime, and principal name. Error string size is set to 512 bytes.
sourcepub fn with_errorstring_size(
&mut self,
errstr_size: usize
) -> &mut OAuthTokenData
pub fn with_errorstring_size(
&mut self,
errstr_size: usize
) -> &mut OAuthTokenData
Modifies the error string size to the specified value.
Auto Trait Implementations
impl RefUnwindSafe for OAuthTokenData
impl Send for OAuthTokenData
impl Sync for OAuthTokenData
impl Unpin for OAuthTokenData
impl UnwindSafe for OAuthTokenData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more