pub enum SelfStatsCacheMode {
AllowCached,
BypassCache,
}Expand description
Controls whether MemoryManager::get_stats may return cached stats when a process reads its
own /proc/self/* memory statistics.
Variants§
AllowCached
Allow returning recent cached_stats on self-reads when the mapping generation matches
(used for high-frequency self-polling files like /proc/self/status and
/proc/self/smaps_rollup).
BypassCache
Bypass cached_stats on self-reads to immediately reflect in-place committed page changes
from userspace page faults (used for /proc/self/stat and /proc/self/statm).
Trait Implementations§
Source§impl Clone for SelfStatsCacheMode
impl Clone for SelfStatsCacheMode
impl Copy for SelfStatsCacheMode
Source§impl Debug for SelfStatsCacheMode
impl Debug for SelfStatsCacheMode
impl Eq for SelfStatsCacheMode
Source§impl PartialEq for SelfStatsCacheMode
impl PartialEq for SelfStatsCacheMode
impl StructuralPartialEq for SelfStatsCacheMode
Auto Trait Implementations§
impl Freeze for SelfStatsCacheMode
impl RefUnwindSafe for SelfStatsCacheMode
impl Send for SelfStatsCacheMode
impl Sync for SelfStatsCacheMode
impl Unpin for SelfStatsCacheMode
impl UnsafeUnpin for SelfStatsCacheMode
impl UnwindSafe for SelfStatsCacheMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more