Struct sc_rpc_server::middleware::RateLimit
source · pub struct RateLimit { /* private fields */ }
Expand description
Rate limit.
Implementations§
source§impl RateLimit
impl RateLimit
sourcepub fn per_minute(n: NonZeroU32) -> Self
pub fn per_minute(n: NonZeroU32) -> Self
Create a new RateLimit
per minute.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RateLimit
impl RefUnwindSafe for RateLimit
impl Send for RateLimit
impl Sync for RateLimit
impl Unpin for RateLimit
impl UnwindSafe for RateLimit
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