pub enum SimpleperfTypeSpecificInfo {
SimpleperfDexFileInfo(SimpleperfDexFileInfo),
ElfFile(SimpleperfElfFileInfo),
KernelModule(SimpleperfKernelModuleInfo),
}
Expand description
Type-specif info inside a SimpleperfFileRecord
.
Variants§
SimpleperfDexFileInfo(SimpleperfDexFileInfo)
Only when type = DSO_DEX_FILE
ElfFile(SimpleperfElfFileInfo)
Only when type = DSO_ELF_FILE
KernelModule(SimpleperfKernelModuleInfo)
Only when type = DSO_KERNEL_MODULE
Implementations§
Source§impl SimpleperfTypeSpecificInfo
impl SimpleperfTypeSpecificInfo
Sourcepub fn merge(
field: &mut Option<SimpleperfTypeSpecificInfo>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<SimpleperfTypeSpecificInfo>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl Clone for SimpleperfTypeSpecificInfo
impl Clone for SimpleperfTypeSpecificInfo
Source§fn clone(&self) -> SimpleperfTypeSpecificInfo
fn clone(&self) -> SimpleperfTypeSpecificInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SimpleperfTypeSpecificInfo
impl Debug for SimpleperfTypeSpecificInfo
Source§impl PartialEq for SimpleperfTypeSpecificInfo
impl PartialEq for SimpleperfTypeSpecificInfo
Source§fn eq(&self, other: &SimpleperfTypeSpecificInfo) -> bool
fn eq(&self, other: &SimpleperfTypeSpecificInfo) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for SimpleperfTypeSpecificInfo
impl StructuralPartialEq for SimpleperfTypeSpecificInfo
Auto Trait Implementations§
impl Freeze for SimpleperfTypeSpecificInfo
impl RefUnwindSafe for SimpleperfTypeSpecificInfo
impl Send for SimpleperfTypeSpecificInfo
impl Sync for SimpleperfTypeSpecificInfo
impl Unpin for SimpleperfTypeSpecificInfo
impl UnwindSafe for SimpleperfTypeSpecificInfo
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