pub struct UdpUnderlayConfigBuilder(/* private fields */);Expand description
UDP underlay configuration builder.
Implementations§
Source§impl UdpUnderlayConfigBuilder
impl UdpUnderlayConfigBuilder
Sourcepub fn with_local_ips(self, local_ips: Vec<IpAddr>) -> Self
pub fn with_local_ips(self, local_ips: Vec<IpAddr>) -> Self
Set the local IP addresses to use for the UDP underlay. If not set, the UDP underlay will use the local IP that can reach the endhost API.
Sourcepub fn with_udp_next_hop_resolver_fetch_interval(
self,
fetch_interval: Duration,
) -> Self
pub fn with_udp_next_hop_resolver_fetch_interval( self, fetch_interval: Duration, ) -> Self
Set the interval at which the UDP next hop resolver fetches the next hops from the endhost API.
Sourcepub fn build(self) -> UdpUnderlayConfig
pub fn build(self) -> UdpUnderlayConfig
Build the UDP underlay configuration.
Auto Trait Implementations§
impl Freeze for UdpUnderlayConfigBuilder
impl RefUnwindSafe for UdpUnderlayConfigBuilder
impl Send for UdpUnderlayConfigBuilder
impl Sync for UdpUnderlayConfigBuilder
impl Unpin for UdpUnderlayConfigBuilder
impl UnwindSafe for UdpUnderlayConfigBuilder
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