pub enum MemoryPressureRequest {
Signal {
level: Level,
control_handle: MemoryPressureControlHandle,
},
}Expand description
Helps debug memory-pressure related features on a fuchsia device.
Variants§
Signal
Signals registered watchers of the fuchsia.memorypressure service with the specified memory pressure level. Intended for debugging only. Does not on its own change the memory pressure level of the system, or trigger any kernel memory reclamation tasks. However the components listening will receive a memory pressure signal which can lead to a change in the memory usage of the device, and an actual change in the memory pressure level of the system.
Implementations§
Source§impl MemoryPressureRequest
impl MemoryPressureRequest
pub fn into_signal(self) -> Option<(Level, MemoryPressureControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MemoryPressureRequest
impl !UnwindSafe for MemoryPressureRequest
impl Freeze for MemoryPressureRequest
impl Send for MemoryPressureRequest
impl Sync for MemoryPressureRequest
impl Unpin for MemoryPressureRequest
impl UnsafeUnpin for MemoryPressureRequest
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