pub enum CollectorRequest {
TakeLiveSnapshot {
payload: CollectorTakeLiveSnapshotRequest,
control_handle: CollectorControlHandle,
},
ListStoredSnapshots {
payload: CollectorListStoredSnapshotsRequest,
control_handle: CollectorControlHandle,
},
DownloadStoredSnapshot {
payload: CollectorDownloadStoredSnapshotRequest,
control_handle: CollectorControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: CollectorControlHandle,
method_type: MethodType,
},
}
Expand description
Protocol to request and retrieve memory profiles.
Variants§
TakeLiveSnapshot
Obtains a snapshot of the current live allocations in an instrumented process.
ListStoredSnapshots
Retrieves the list of all the available stored snapshots.
DownloadStoredSnapshot
Retrieves a stored snapshot.
_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: CollectorControlHandle
§
method_type: MethodType
Implementations§
Source§impl CollectorRequest
impl CollectorRequest
pub fn into_take_live_snapshot( self, ) -> Option<(CollectorTakeLiveSnapshotRequest, CollectorControlHandle)>
pub fn into_list_stored_snapshots( self, ) -> Option<(CollectorListStoredSnapshotsRequest, CollectorControlHandle)>
pub fn into_download_stored_snapshot( self, ) -> Option<(CollectorDownloadStoredSnapshotRequest, CollectorControlHandle)>
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 Freeze for CollectorRequest
impl !RefUnwindSafe for CollectorRequest
impl Send for CollectorRequest
impl Sync for CollectorRequest
impl Unpin for CollectorRequest
impl !UnwindSafe for CollectorRequest
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