pub struct SocketConfig { /* private fields */ }Expand description
Configuration for a path aware socket.
Implementations§
Source§impl SocketConfig
impl SocketConfig
Sourcepub fn with_path_policy(self, policy: impl PathPolicy) -> Self
pub fn with_path_policy(self, policy: impl PathPolicy) -> Self
Adds a path policy.
Path policies can restrict the set of usable paths based on their characteristics. E.g. filtering out paths that go through certain ASes.
See HopPatternPolicy and
AclPolicy
Sourcepub fn with_path_ranking(self, ranking: impl PathRanking) -> Self
pub fn with_path_ranking(self, ranking: impl PathRanking) -> Self
Add a path ranking strategy.
Path Rankings prioritize paths based on their characteristics.
Ranking priority is determined by the order in which they are added to the stack, the first having the highest priority.
If no ranking strategies are added, ranking will default to
Shortest.
Trait Implementations§
Source§impl Default for SocketConfig
impl Default for SocketConfig
Source§fn default() -> SocketConfig
fn default() -> SocketConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SocketConfig
impl !RefUnwindSafe for SocketConfig
impl Send for SocketConfig
impl Sync for SocketConfig
impl Unpin for SocketConfig
impl !UnwindSafe for SocketConfig
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