pub struct DeclaredLimit {
pub resource: Symbol,
pub maximum: u64,
}Expand description
A declared, mechanically enforced resource limit.
Fields§
§resource: SymbolOpen resource name, such as bytes/request or calls/second.
maximum: u64Maximum amount of the resource admitted by the port.
Trait Implementations§
Source§impl Clone for DeclaredLimit
impl Clone for DeclaredLimit
Source§fn clone(&self) -> DeclaredLimit
fn clone(&self) -> DeclaredLimit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeclaredLimit
impl Debug for DeclaredLimit
impl Eq for DeclaredLimit
Source§impl PartialEq for DeclaredLimit
impl PartialEq for DeclaredLimit
impl StructuralPartialEq for DeclaredLimit
Auto Trait Implementations§
impl Freeze for DeclaredLimit
impl RefUnwindSafe for DeclaredLimit
impl Send for DeclaredLimit
impl Sync for DeclaredLimit
impl Unpin for DeclaredLimit
impl UnsafeUnpin for DeclaredLimit
impl UnwindSafe for DeclaredLimit
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