pub trait DelegatedRouteResolutionOptions<I: Ip>: OptionDelegationMarker {
// Provided methods
fn delegate(&self) -> &impl RouteResolutionOptions<I> { ... }
fn transparent(&self) -> bool { ... }
fn marks(&self) -> &Marks { ... }
}
Expand description
A trait providing route resolution options delegation to an inner type.
A blanket impl of RouteResolutionOptions
is provided to all
implementers. This trait has the same shape as RouteResolutionOptions
but
all the methods provide default implementations that delegate to the value
returned by DelegatedRouteResolutionOptions::Delegate
. For brevity, the
default delegate
is DefaultIpSocketOptions
.
Provided Methods§
sourcefn delegate(&self) -> &impl RouteResolutionOptions<I>
fn delegate(&self) -> &impl RouteResolutionOptions<I>
Returns the delegate providing the impl for all default methods.
fn transparent(&self) -> bool
fn marks(&self) -> &Marks
Object Safety§
This trait is not object safe.