pub struct AppWakelockInfo {
pub iid: Option<i32>,
pub tag: Option<String>,
pub flags: Option<i32>,
pub owner_pid: Option<i32>,
pub owner_uid: Option<i32>,
pub work_uid: Option<i32>,
}
Expand description
AppWakelockInfo describes the time-independent properties of a wakelock, such as the owning package or wakelock tag. This is interned to reduce trace size. Event bundles refer to interned wakelock info by the iid.
Fields§
§iid: Option<i32>
The interned id of this wakelock.
tag: Option<String>
The app-provided tag of the wakelock.
flags: Option<i32>
The wakelock flags (such as partial vs full).
owner_pid: Option<i32>
The pid that created the wakelock.
owner_uid: Option<i32>
The uid that created the wakelock.
work_uid: Option<i32>
The uid of the work source root (if present).
Implementations§
Trait Implementations§
Source§impl Clone for AppWakelockInfo
impl Clone for AppWakelockInfo
Source§fn clone(&self) -> AppWakelockInfo
fn clone(&self) -> AppWakelockInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AppWakelockInfo
impl Debug for AppWakelockInfo
Source§impl Default for AppWakelockInfo
impl Default for AppWakelockInfo
Source§impl Message for AppWakelockInfo
impl Message for AppWakelockInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for AppWakelockInfo
impl PartialEq for AppWakelockInfo
impl StructuralPartialEq for AppWakelockInfo
Auto Trait Implementations§
impl Freeze for AppWakelockInfo
impl RefUnwindSafe for AppWakelockInfo
impl Send for AppWakelockInfo
impl Sync for AppWakelockInfo
impl Unpin for AppWakelockInfo
impl UnwindSafe for AppWakelockInfo
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