pub struct HidePathsLayer<N = DefaultNotFoundService> { /* private fields */ }Expand description
A tower::Layer for use with a tower::ServiceBuilder to reply with a fallback
service to any routes found internally.
Implementations§
Trait Implementations§
Source§impl<N: Clone> Clone for HidePathsLayer<N>
impl<N: Clone> Clone for HidePathsLayer<N>
Source§fn clone(&self) -> HidePathsLayer<N>
fn clone(&self) -> HidePathsLayer<N>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<N> Freeze for HidePathsLayer<N>where
N: Freeze,
impl<N = DefaultNotFoundService> !RefUnwindSafe for HidePathsLayer<N>
impl<N> Send for HidePathsLayer<N>where
N: Send,
impl<N> Sync for HidePathsLayer<N>where
N: Sync,
impl<N> Unpin for HidePathsLayer<N>where
N: Unpin,
impl<N = DefaultNotFoundService> !UnwindSafe for HidePathsLayer<N>
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