routing::bedrock::with_availability

Trait WithAvailability

Source
pub trait WithAvailability {
    // Required method
    fn with_availability(
        self,
        moniker: impl Into<ExtendedMoniker>,
        availability: Availability,
    ) -> Self;
}

Required Methods§

Source

fn with_availability( self, moniker: impl Into<ExtendedMoniker>, availability: Availability, ) -> Self

Returns a router that ensures the capability request has an availability strength that is at least the provided availability.

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.

Implementations on Foreign Types§

Source§

impl<T: CapabilityBound> WithAvailability for Router<T>

Source§

fn with_availability( self, moniker: impl Into<ExtendedMoniker>, availability: Availability, ) -> Self

Implementors§