pub struct BarnacleLayer<T = (), S = RedisBarnacleStore, State = (), E = BarnacleError, V = ()> { /* private fields */ }
Expand description
Generic rate limiting and API key layer
Implementations§
Trait Implementations§
Source§impl<T, S, State, E, V> Clone for BarnacleLayer<T, S, State, E, V>
impl<T, S, State, E, V> Clone for BarnacleLayer<T, S, State, E, V>
Source§impl<Inner, T, S, State, E, V> Layer<Inner> for BarnacleLayer<T, S, State, E, V>where
T: DeserializeOwned + KeyExtractable + Send + 'static,
S: Clone + BarnacleStore + 'static,
State: Clone + Send + Sync + 'static,
E: IntoResponse + Send + Sync + 'static,
Inner: Clone,
V: Clone + Send + Sync + 'static,
impl<Inner, T, S, State, E, V> Layer<Inner> for BarnacleLayer<T, S, State, E, V>where
T: DeserializeOwned + KeyExtractable + Send + 'static,
S: Clone + BarnacleStore + 'static,
State: Clone + Send + Sync + 'static,
E: IntoResponse + Send + Sync + 'static,
Inner: Clone,
V: Clone + Send + Sync + 'static,
Auto Trait Implementations§
impl<T, S, State, E, V> Freeze for BarnacleLayer<T, S, State, E, V>
impl<T, S, State, E, V> RefUnwindSafe for BarnacleLayer<T, S, State, E, V>
impl<T, S, State, E, V> Send for BarnacleLayer<T, S, State, E, V>
impl<T, S, State, E, V> Sync for BarnacleLayer<T, S, State, E, V>
impl<T, S, State, E, V> Unpin for BarnacleLayer<T, S, State, E, V>
impl<T, S, State, E, V> UnwindSafe for BarnacleLayer<T, S, State, E, V>
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