pub struct SnapUnderlayConfigBuilder(/* private fields */);Expand description
SNAP underlay configuration builder.
Implementations§
Source§impl SnapUnderlayConfigBuilder
impl SnapUnderlayConfigBuilder
Sourcepub fn with_auth_token(self, token: String) -> Self
pub fn with_auth_token(self, token: String) -> Self
Set a static token to use for authentication with the SNAP control plane.
Sourcepub fn with_auth_token_source(self, source: impl TokenSource) -> Self
pub fn with_auth_token_source(self, source: impl TokenSource) -> Self
Set a token source to use for authentication with the SNAP control plane.
Sourcepub fn with_snap_dp_index(self, dp_index: usize) -> Self
pub fn with_snap_dp_index(self, dp_index: usize) -> Self
Set the index of the SNAP data plane to use.
§Arguments
dp_index- The index of the SNAP data plane to use.
Sourcepub fn with_tunnel_reconnect_backoff(
self,
minimum_delay_secs: Duration,
maximum_delay_secs: Duration,
factor: f32,
jitter_secs: Duration,
) -> Self
pub fn with_tunnel_reconnect_backoff( self, minimum_delay_secs: Duration, maximum_delay_secs: Duration, factor: f32, jitter_secs: Duration, ) -> Self
Set the parameters for the exponential backoff configuration for reconnecting a SNAP tunnel.
§Arguments
minimum_delay_secs- The minimum delay in seconds.maximum_delay_secs- The maximum delay in seconds.factor- The factor to multiply the delay by.jitter_secs- The jitter in seconds.
Sourcepub fn build(self) -> SnapUnderlayConfig
pub fn build(self) -> SnapUnderlayConfig
Auto Trait Implementations§
impl Freeze for SnapUnderlayConfigBuilder
impl !RefUnwindSafe for SnapUnderlayConfigBuilder
impl Send for SnapUnderlayConfigBuilder
impl Sync for SnapUnderlayConfigBuilder
impl Unpin for SnapUnderlayConfigBuilder
impl !UnwindSafe for SnapUnderlayConfigBuilder
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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