pub struct SnapUnderlayConfig { /* private fields */ }Expand description
SNAP underlay configuration.
Construct with SnapUnderlayConfig::default and customize with the consuming with_*
methods, then pass to ScionStackBuilder::with_snap_underlay_config.
Implementations§
Source§impl SnapUnderlayConfig
impl SnapUnderlayConfig
Sourcepub fn with_auth_token(self, token: String) -> Self
pub fn with_auth_token(self, token: String) -> Self
Sets 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
Sets a token source to use for authentication with the SNAP control plane.
Sourcepub fn with_crpc_client(self, client: Client) -> Self
pub fn with_crpc_client(self, client: Client) -> Self
Sets a custom CRPC client for discovering and connecting to data planes.
Sourcepub fn with_snap_dp_index(self, dp_index: usize) -> Self
pub fn with_snap_dp_index(self, dp_index: usize) -> Self
Sets the index of the SNAP data plane to use.
Sourcepub fn with_static_identity(self, identity: StaticSecret) -> Self
pub fn with_static_identity(self, identity: StaticSecret) -> Self
Sets the static identity to use for snap-tun connections.
If unset, a random static identity is generated.
Trait Implementations§
Source§impl Default for SnapUnderlayConfig
impl Default for SnapUnderlayConfig
Source§fn default() -> SnapUnderlayConfig
fn default() -> SnapUnderlayConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SnapUnderlayConfig
impl !UnwindSafe for SnapUnderlayConfig
impl Freeze for SnapUnderlayConfig
impl Send for SnapUnderlayConfig
impl Sync for SnapUnderlayConfig
impl Unpin for SnapUnderlayConfig
impl UnsafeUnpin for SnapUnderlayConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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