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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.