pub struct ThrottlingQuotaExceededError { /* private fields */ }Expand description
Error thrown if an operation on a resource exceeds the throttling quota.
§Translation notes
Error code Errors::ThrottlingQuotaExceeded.
Implementations§
Source§impl ThrottlingQuotaExceededError
impl ThrottlingQuotaExceededError
Sourcepub fn new(throttle_time_ms: i32, message: impl Into<String>) -> Self
pub fn new(throttle_time_ms: i32, message: impl Into<String>) -> Self
Creates a throttling quota exceeded error.
§Arguments
throttle_time_ms- the amount of time to wait before retrying, in millisecondsmessage- the error’s message
Sourcepub fn with_default_message(throttle_time_ms: i32) -> Self
pub fn with_default_message(throttle_time_ms: i32) -> Self
Creates the error with the default message of Errors::ThrottlingQuotaExceeded, as the
broker’s error code is turned into an error.
§Arguments
throttle_time_ms- the amount of time to wait before retrying, in milliseconds
Sourcepub fn throttle_time_ms(&self) -> i32
pub fn throttle_time_ms(&self) -> i32
Returns the amount of time to wait before retrying, in milliseconds.
Trait Implementations§
Source§impl Clone for ThrottlingQuotaExceededError
impl Clone for ThrottlingQuotaExceededError
Source§fn clone(&self) -> ThrottlingQuotaExceededError
fn clone(&self) -> ThrottlingQuotaExceededError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThrottlingQuotaExceededError
impl Debug for ThrottlingQuotaExceededError
Source§impl Error for ThrottlingQuotaExceededError
impl Error for ThrottlingQuotaExceededError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ThrottlingQuotaExceededError
impl RefUnwindSafe for ThrottlingQuotaExceededError
impl Send for ThrottlingQuotaExceededError
impl Sync for ThrottlingQuotaExceededError
impl Unpin for ThrottlingQuotaExceededError
impl UnsafeUnpin for ThrottlingQuotaExceededError
impl UnwindSafe for ThrottlingQuotaExceededError
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