pub struct Router { /* private fields */ }Expand description
Maps request paths onto mounted secrets engines by longest-prefix match —
the same dispatch model Policy::is_allowed uses for ACLs. Registering a
new engine means adding one EngineMount here, nowhere else.
Implementations§
Source§impl Router
impl Router
pub fn new(mounts: Vec<EngineMount>) -> Self
Sourcepub fn mounts(&self) -> &[EngineMount]
pub fn mounts(&self) -> &[EngineMount]
Every registered mount, in registration order. Used to build the
server’s sys/help index.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Router
impl !UnwindSafe for Router
impl Freeze for Router
impl Send for Router
impl Sync for Router
impl Unpin for Router
impl UnsafeUnpin for Router
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