pub struct EndpointClass {
pub matcher: GlobMatcher,
pub class: String,
pub rate: Rate,
}Expand description
A compiled endpoint-class rule: requests whose path matches matcher are
limited per client at rate, grouped under class.
Fields§
§matcher: GlobMatcher§class: String§rate: RateAuto Trait Implementations§
impl Freeze for EndpointClass
impl RefUnwindSafe for EndpointClass
impl Send for EndpointClass
impl Sync for EndpointClass
impl Unpin for EndpointClass
impl UnsafeUnpin for EndpointClass
impl UnwindSafe for EndpointClass
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request