pub struct MemoryEventPolicy {
pub frame_committed: MemoryAction,
pub window_hidden: MemoryAction,
pub window_shown: MemoryAction,
pub all_windows_hidden: MemoryAction,
pub session_unmounted: MemoryAction,
pub renderer_device_lost: MemoryAction,
pub theme_or_scale_changed: MemoryAction,
pub moderate_pressure: MemoryAction,
pub critical_pressure: MemoryAction,
pub explicit_trim: MemoryAction,
pub application_shutdown: MemoryAction,
}Fields§
§frame_committed: MemoryAction§window_shown: MemoryAction§session_unmounted: MemoryAction§renderer_device_lost: MemoryAction§theme_or_scale_changed: MemoryAction§moderate_pressure: MemoryAction§critical_pressure: MemoryAction§explicit_trim: MemoryAction§application_shutdown: MemoryActionImplementations§
Source§impl MemoryEventPolicy
impl MemoryEventPolicy
pub const fn action_for(self, event: MemoryEvent) -> MemoryAction
pub const fn ignore_all() -> Self
Trait Implementations§
Source§impl Clone for MemoryEventPolicy
impl Clone for MemoryEventPolicy
Source§fn clone(&self) -> MemoryEventPolicy
fn clone(&self) -> MemoryEventPolicy
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 moreimpl Copy for MemoryEventPolicy
Source§impl Debug for MemoryEventPolicy
impl Debug for MemoryEventPolicy
impl Eq for MemoryEventPolicy
Source§impl PartialEq for MemoryEventPolicy
impl PartialEq for MemoryEventPolicy
impl StructuralPartialEq for MemoryEventPolicy
Auto Trait Implementations§
impl Freeze for MemoryEventPolicy
impl RefUnwindSafe for MemoryEventPolicy
impl Send for MemoryEventPolicy
impl Sync for MemoryEventPolicy
impl Unpin for MemoryEventPolicy
impl UnsafeUnpin for MemoryEventPolicy
impl UnwindSafe for MemoryEventPolicy
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