routing::bedrock::with_rights

Trait WithRights

Source
pub trait WithRights {
    // Required method
    fn with_rights(
        self,
        moniker: impl Into<ExtendedMoniker>,
        rights: Rights,
    ) -> Self;
}

Required Methods§

Source

fn with_rights( self, moniker: impl Into<ExtendedMoniker>, rights: Rights, ) -> Self

Returns a router that ensures the capability request does not request greater rights than provided at this stage of the route.

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> WithRights for Router<T>

Source§

fn with_rights( self, moniker: impl Into<ExtendedMoniker>, rights: Rights, ) -> Self

Implementors§