pub enum MemoryPressure {
UiHidden,
Low,
Critical,
}Expand description
How hard the platform asks for memory back.
Variants§
UiHidden
The UI left the screen. Anything held only to draw the next frame fast can go.
Low
The process should give back what it can rebuild.
Critical
The system reclaims by force next. Free everything that can go.
Implementations§
Source§impl MemoryPressure
impl MemoryPressure
Sourcepub fn from_android_trim_level(level: i32) -> Self
pub fn from_android_trim_level(level: i32) -> Self
Maps an Android ComponentCallbacks2 trim level.
Trait Implementations§
Source§impl Clone for MemoryPressure
impl Clone for MemoryPressure
impl Copy for MemoryPressure
Source§impl Debug for MemoryPressure
impl Debug for MemoryPressure
impl Eq for MemoryPressure
Source§impl PartialEq for MemoryPressure
impl PartialEq for MemoryPressure
impl StructuralPartialEq for MemoryPressure
Auto Trait Implementations§
impl Freeze for MemoryPressure
impl RefUnwindSafe for MemoryPressure
impl Send for MemoryPressure
impl Sync for MemoryPressure
impl Unpin for MemoryPressure
impl UnsafeUnpin for MemoryPressure
impl UnwindSafe for MemoryPressure
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