pub enum PagerStatsSinkRequest {
SendPagerStats {
pager_stats_vmo: Vmo,
control_handle: PagerStatsSinkControlHandle,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: PagerStatsSinkControlHandle,
method_type: MethodType,
},
}Expand description
Protocol used by user pagers to publish memory attribution statistics.
Variants§
SendPagerStats
Sends a VMO containing shared counts of page refaults and total page faults, both measured in pages supplied by the pager including readahead. The shared counts are stored as two canonical monotonic atomic 64-bit unsigned integers from the start of the VMO:
- Offset 0:
page_refaults(pages supplied that had already been supplied before) - Offset 8:
page_faults(total pages supplied by the user pager)
#[non_exhaustive]_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: PagerStatsSinkControlHandle§
method_type: MethodTypeImplementations§
Source§impl PagerStatsSinkRequest
impl PagerStatsSinkRequest
pub fn into_send_pager_stats(self) -> Option<(Vmo, PagerStatsSinkControlHandle)>
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 PagerStatsSinkRequest
impl !UnwindSafe for PagerStatsSinkRequest
impl Freeze for PagerStatsSinkRequest
impl Send for PagerStatsSinkRequest
impl Sync for PagerStatsSinkRequest
impl Unpin for PagerStatsSinkRequest
impl UnsafeUnpin for PagerStatsSinkRequest
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