pub struct AutoSessionRenewal { /* private fields */ }Expand description
Automatic session renewal configuration.
Implementations§
Source§impl AutoSessionRenewal
impl AutoSessionRenewal
Sourcepub fn new(renew_wait_threshold: Duration, token_renewer: TokenRenewFn) -> Self
pub fn new(renew_wait_threshold: Duration, token_renewer: TokenRenewFn) -> Self
Create a new automatic session renewal configuration.
§Arguments
renew_wait_threshold- Duration before session expiry to wait before attempting renewal.token_renewer- Function to renew the session token.
Auto Trait Implementations§
impl Freeze for AutoSessionRenewal
impl !RefUnwindSafe for AutoSessionRenewal
impl Send for AutoSessionRenewal
impl Sync for AutoSessionRenewal
impl Unpin for AutoSessionRenewal
impl !UnwindSafe for AutoSessionRenewal
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request