pub struct MemoryLimit<T, M>where
M: AvailableMemory,{ /* private fields */ }Expand description
Enforces a limit on the underlying service when a memory threshold is met.
Implementations§
Source§impl<T, M> MemoryLimit<T, M>where
M: AvailableMemory,
impl<T, M> MemoryLimit<T, M>where
M: AvailableMemory,
Trait Implementations§
Source§impl<S: Clone, M> Clone for MemoryLimit<S, M>where
M: AvailableMemory,
impl<S: Clone, M> Clone for MemoryLimit<S, M>where
M: AvailableMemory,
Source§impl<T: Debug, M> Debug for MemoryLimit<T, M>where
M: AvailableMemory + Debug,
impl<T: Debug, M> Debug for MemoryLimit<T, M>where
M: AvailableMemory + Debug,
Auto Trait Implementations§
impl<T, M> Freeze for MemoryLimit<T, M>
impl<T, M> !RefUnwindSafe for MemoryLimit<T, M>
impl<T, M> Send for MemoryLimit<T, M>where
T: Send,
impl<T, M> Sync for MemoryLimit<T, M>
impl<T, M> Unpin for MemoryLimit<T, M>
impl<T, M> !UnwindSafe for MemoryLimit<T, M>
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