Struct sc_rpc_server::middleware::rate_limit::RateLimitLayer
source · pub struct RateLimitLayer(/* private fields */);Expand description
JSON-RPC rate limit middleware layer.
Implementations§
source§impl RateLimitLayer
impl RateLimitLayer
sourcepub fn per_minute(n: NonZeroU32) -> Self
pub fn per_minute(n: NonZeroU32) -> Self
Create new rate limit enforced per minute.
Trait Implementations§
source§impl Clone for RateLimitLayer
impl Clone for RateLimitLayer
source§fn clone(&self) -> RateLimitLayer
fn clone(&self) -> RateLimitLayer
Returns a copy 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 moresource§impl Debug for RateLimitLayer
impl Debug for RateLimitLayer
Auto Trait Implementations§
impl RefUnwindSafe for RateLimitLayer
impl Send for RateLimitLayer
impl Sync for RateLimitLayer
impl Unpin for RateLimitLayer
impl UnwindSafe for RateLimitLayer
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