Enum gapi_grpc::google::api::servicecontrol::v1::quota_operation::QuotaMode[][src]

#[repr(i32)]pub enum QuotaMode {
    Unspecified,
    Normal,
    BestEffort,
    CheckOnly,
    QueryOnly,
    AdjustOnly,
}

Supported quota modes.

Variants

Unspecified

Guard against implicit default. Must not be used.

Normal

For AllocateQuota request, allocates quota for the amount specified in the service configuration or specified using the quota metrics. If the amount is higher than the available quota, allocation error will be returned and no quota will be allocated. If multiple quotas are part of the request, and one fails, none of the quotas are allocated or released.

BestEffort

The operation allocates quota for the amount specified in the service configuration or specified using the quota metrics. If the amount is higher than the available quota, request does not fail but all available quota will be allocated. For rate quota, BEST_EFFORT will continue to deduct from other groups even if one does not have enough quota. For allocation, it will find the minimum available amount across all groups and deduct that amount from all the affected groups.

CheckOnly

For AllocateQuota request, only checks if there is enough quota available and does not change the available quota. No lock is placed on the available quota either.

QueryOnly

Unimplemented. When used in AllocateQuotaRequest, this returns the effective quota limit(s) in the response, and no quota check will be performed. Not supported for other requests, and even for AllocateQuotaRequest, this is currently supported only for whitelisted services.

AdjustOnly

The operation allocates quota for the amount specified in the service configuration or specified using the quota metrics. If the requested amount is higher than the available quota, request does not fail and remaining quota would become negative (going over the limit) Not supported for Rate Quota.

Implementations

impl QuotaMode[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of QuotaMode.

pub fn from_i32(value: i32) -> Option<QuotaMode>[src]

Converts an i32 to a QuotaMode, or None if value is not a valid variant.

Trait Implementations

impl Clone for QuotaMode[src]

impl Copy for QuotaMode[src]

impl Debug for QuotaMode[src]

impl Default for QuotaMode[src]

impl Eq for QuotaMode[src]

impl From<QuotaMode> for i32[src]

impl Hash for QuotaMode[src]

impl Ord for QuotaMode[src]

impl PartialEq<QuotaMode> for QuotaMode[src]

impl PartialOrd<QuotaMode> for QuotaMode[src]

impl StructuralEq for QuotaMode[src]

impl StructuralPartialEq for QuotaMode[src]

Auto Trait Implementations

impl RefUnwindSafe for QuotaMode

impl Send for QuotaMode

impl Sync for QuotaMode

impl Unpin for QuotaMode

impl UnwindSafe for QuotaMode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]