struct ConcurrentLimitService {
inner: Servicer,
limited: Servicer,
semaphore: SharedSemaphore,
}Fields§
§inner: Servicer§limited: Servicer§semaphore: SharedSemaphoreTrait Implementations§
Source§impl Debug for ConcurrentLimitService
impl Debug for ConcurrentLimitService
Source§impl Service for ConcurrentLimitService
impl Service for ConcurrentLimitService
Source§type Lister = ConcurrentLimitLister
type Lister = ConcurrentLimitLister
Lister returned by
list.Source§fn info(&self) -> ServiceInfo
fn info(&self) -> ServiceInfo
Return the immutable identity and configuration for this service.
Source§fn capability(&self) -> Capability
fn capability(&self) -> Capability
Return the capability of this service stack. Read more
Source§async fn create_dir(
&self,
ctx: &OperationContext,
path: &str,
args: OpCreateDir,
) -> Result<RpCreateDir>
async fn create_dir( &self, ctx: &OperationContext, path: &str, args: OpCreateDir, ) -> Result<RpCreateDir>
Invoke the
create operation on the specified path. Read moreSource§async fn stat(
&self,
ctx: &OperationContext,
path: &str,
args: OpStat,
) -> Result<RpStat>
async fn stat( &self, ctx: &OperationContext, path: &str, args: OpStat, ) -> Result<RpStat>
Invoke the
stat operation on the specified path. Read moreSource§fn read(
&self,
ctx: &OperationContext,
path: &str,
args: OpRead,
) -> Result<Self::Reader>
fn read( &self, ctx: &OperationContext, path: &str, args: OpRead, ) -> Result<Self::Reader>
Invoke the
read operation on the specified path. Read moreSource§fn write(
&self,
ctx: &OperationContext,
path: &str,
args: OpWrite,
) -> Result<Self::Writer>
fn write( &self, ctx: &OperationContext, path: &str, args: OpWrite, ) -> Result<Self::Writer>
Invoke the
write operation on the specified path. Read moreSource§fn delete(&self, ctx: &OperationContext) -> Result<Self::Deleter>
fn delete(&self, ctx: &OperationContext) -> Result<Self::Deleter>
Invoke the
delete operation. Read moreSource§fn list(
&self,
ctx: &OperationContext,
path: &str,
args: OpList,
) -> Result<Self::Lister>
fn list( &self, ctx: &OperationContext, path: &str, args: OpList, ) -> Result<Self::Lister>
Invoke the
list operation on the specified path. Read moreSource§fn copy(
&self,
ctx: &OperationContext,
from: &str,
to: &str,
args: OpCopy,
) -> Result<Self::Copier>
fn copy( &self, ctx: &OperationContext, from: &str, to: &str, args: OpCopy, ) -> Result<Self::Copier>
Source§fn compose(
&self,
ctx: &OperationContext,
to: &str,
args: OpCompose,
) -> Result<Self::Composer>
fn compose( &self, ctx: &OperationContext, to: &str, args: OpCompose, ) -> Result<Self::Composer>
Invoke the
compose operation for the specified destination path. Read moreSource§async fn restore(
&self,
ctx: &OperationContext,
path: &str,
args: OpRestore,
) -> Result<RpRestore>
async fn restore( &self, ctx: &OperationContext, path: &str, args: OpRestore, ) -> Result<RpRestore>
Invoke the
restore operation on the specified path. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ConcurrentLimitService
impl !UnwindSafe for ConcurrentLimitService
impl Freeze for ConcurrentLimitService
impl Send for ConcurrentLimitService
impl Sync for ConcurrentLimitService
impl Unpin for ConcurrentLimitService
impl UnsafeUnpin for ConcurrentLimitService
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Creates a shared type from an unshared type.
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].impl<T> LruValue for T
impl<T> MaybeSend for Twhere
T: Send,
impl<T> MaybeSend for Twhere
T: Send,
Source§impl<M> MetricVecRelabelExt for M
impl<M> MetricVecRelabelExt for M
Source§fn relabel(
self,
metric_level: MetricLevel,
relabel_threshold: MetricLevel,
) -> RelabeledMetricVec<M>
fn relabel( self, metric_level: MetricLevel, relabel_threshold: MetricLevel, ) -> RelabeledMetricVec<M>
Equivalent to
RelabeledMetricVec::with_metric_level.Source§fn relabel_n(
self,
metric_level: MetricLevel,
relabel_threshold: MetricLevel,
relabel_num: usize,
) -> RelabeledMetricVec<M>
fn relabel_n( self, metric_level: MetricLevel, relabel_threshold: MetricLevel, relabel_num: usize, ) -> RelabeledMetricVec<M>
Equivalent to
RelabeledMetricVec::with_metric_level_relabel_n.Source§fn relabel_debug_1(
self,
relabel_threshold: MetricLevel,
) -> RelabeledMetricVec<M>
fn relabel_debug_1( self, relabel_threshold: MetricLevel, ) -> RelabeledMetricVec<M>
Equivalent to
RelabeledMetricVec::with_metric_level_relabel_n with metric_level set to
MetricLevel::Debug and relabel_num set to 1.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> Scope for T
impl<T> Scope for T
§impl<S> ServiceDyn for Swhere
S: Service + ?Sized,
impl<S> ServiceDyn for Swhere
S: Service + ?Sized,
§fn capability_dyn(&self) -> Capability
fn capability_dyn(&self) -> Capability
Dyn version of [
Service::capability].§fn create_dir_dyn<'a>(
&'a self,
ctx: &'a OperationContext,
path: &'a str,
args: OpCreateDir,
) -> Pin<Box<dyn Future<Output = Result<RpCreateDir, Error>> + Send + 'a>>
fn create_dir_dyn<'a>( &'a self, ctx: &'a OperationContext, path: &'a str, args: OpCreateDir, ) -> Pin<Box<dyn Future<Output = Result<RpCreateDir, Error>> + Send + 'a>>
Dyn version of [
Service::create_dir].§fn stat_dyn<'a>(
&'a self,
ctx: &'a OperationContext,
path: &'a str,
args: OpStat,
) -> Pin<Box<dyn Future<Output = Result<RpStat, Error>> + Send + 'a>>
fn stat_dyn<'a>( &'a self, ctx: &'a OperationContext, path: &'a str, args: OpStat, ) -> Pin<Box<dyn Future<Output = Result<RpStat, Error>> + Send + 'a>>
Dyn version of [
Service::stat].§fn read_dyn<'a>(
&'a self,
ctx: &'a OperationContext,
path: &'a str,
args: OpRead,
) -> Result<Box<dyn ReadDyn>, Error>
fn read_dyn<'a>( &'a self, ctx: &'a OperationContext, path: &'a str, args: OpRead, ) -> Result<Box<dyn ReadDyn>, Error>
Dyn version of [
Service::read].§fn write_dyn<'a>(
&'a self,
ctx: &'a OperationContext,
path: &'a str,
args: OpWrite,
) -> Result<Box<dyn WriteDyn>, Error>
fn write_dyn<'a>( &'a self, ctx: &'a OperationContext, path: &'a str, args: OpWrite, ) -> Result<Box<dyn WriteDyn>, Error>
Dyn version of [
Service::write].§fn delete_dyn<'a>(
&'a self,
ctx: &'a OperationContext,
) -> Result<Box<dyn DeleteDyn>, Error>
fn delete_dyn<'a>( &'a self, ctx: &'a OperationContext, ) -> Result<Box<dyn DeleteDyn>, Error>
Dyn version of [
Service::delete].§fn list_dyn<'a>(
&'a self,
ctx: &'a OperationContext,
path: &'a str,
args: OpList,
) -> Result<Box<dyn ListDyn>, Error>
fn list_dyn<'a>( &'a self, ctx: &'a OperationContext, path: &'a str, args: OpList, ) -> Result<Box<dyn ListDyn>, Error>
Dyn version of [
Service::list].§fn copy_dyn<'a>(
&'a self,
ctx: &'a OperationContext,
from: &'a str,
to: &'a str,
args: OpCopy,
) -> Result<Box<dyn CopyDyn>, Error>
fn copy_dyn<'a>( &'a self, ctx: &'a OperationContext, from: &'a str, to: &'a str, args: OpCopy, ) -> Result<Box<dyn CopyDyn>, Error>
Dyn version of [
Service::copy].§fn compose_dyn<'a>(
&'a self,
ctx: &'a OperationContext,
to: &'a str,
args: OpCompose,
) -> Result<Box<dyn ComposeDyn>, Error>
fn compose_dyn<'a>( &'a self, ctx: &'a OperationContext, to: &'a str, args: OpCompose, ) -> Result<Box<dyn ComposeDyn>, Error>
Dyn version of [
Service::compose].§fn rename_dyn<'a>(
&'a self,
ctx: &'a OperationContext,
from: &'a str,
to: &'a str,
args: OpRename,
) -> Pin<Box<dyn Future<Output = Result<RpRename, Error>> + Send + 'a>>
fn rename_dyn<'a>( &'a self, ctx: &'a OperationContext, from: &'a str, to: &'a str, args: OpRename, ) -> Pin<Box<dyn Future<Output = Result<RpRename, Error>> + Send + 'a>>
Dyn version of [
Service::rename].