pub struct RelayLimits {
pub per_peer: u32,
pub window: Duration,
pub concurrent: usize,
pub max_peers: usize,
pub per_local: u32,
pub local_total: u32,
}Expand description
Limits on what members can cost the steward (ADR-106 section 6): a request budget per member, and a bound on checkouts running at once. Over-limit refusals are not chained, so they cannot grow the chain either.
Fields§
§per_peer: u32Requests per member per window.
window: DurationThe window.
concurrent: usizeCheckouts in flight at once.
max_peers: usizeMembers remembered at once; the oldest windows are pruned.
per_local: u32Requests per local principal per window.
local_total: u32Requests from all local principals together per window.
Trait Implementations§
Source§impl Clone for RelayLimits
impl Clone for RelayLimits
Source§impl Debug for RelayLimits
impl Debug for RelayLimits
Auto Trait Implementations§
impl Freeze for RelayLimits
impl RefUnwindSafe for RelayLimits
impl Send for RelayLimits
impl Sync for RelayLimits
impl Unpin for RelayLimits
impl UnsafeUnpin for RelayLimits
impl UnwindSafe for RelayLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more