pub struct ConcurrentSessionEvent {
pub state: Option<i32>,
pub session_name: Option<String>,
pub session_id: Option<u64>,
pub consumer_uid: Option<i32>,
pub num_data_sources: Option<u32>,
}Expand description
Emitted by the tracing service to record a state change of another tracing session that was active while this trace was being recorded. Opt-in via TraceConfig.BuiltinDataSource.enable_concurrent_session_events.
One packet per state change; its time is carried by the enclosing TracePacket’s timestamp (CLOCK_BOOTTIME). Events of the same session share the same |session_id|. The trace UUID is deliberately not included.
Introduced in v58 / Android 26Q3+.
Fields§
§state: Option<i32>The state the session transitioned to at this timestamp.
session_name: Option<String>unique_session_name from the session’s TraceConfig. May be empty.
session_id: Option<u64>Service-local monotonic counter identifying the session. Shared by all state changes of one session, never reused within a service instance.
consumer_uid: Option<i32>Unix uid of the consumer that started the session.
num_data_sources: Option<u32>Number of data sources in the session at the time of the state change.
Implementations§
Source§impl ConcurrentSessionEvent
impl ConcurrentSessionEvent
Sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn session_name(&self) -> &str
pub fn session_name(&self) -> &str
Returns the value of session_name, or the default value if session_name is unset.
Sourcepub fn session_id(&self) -> u64
pub fn session_id(&self) -> u64
Returns the value of session_id, or the default value if session_id is unset.
Sourcepub fn consumer_uid(&self) -> i32
pub fn consumer_uid(&self) -> i32
Returns the value of consumer_uid, or the default value if consumer_uid is unset.
Sourcepub fn num_data_sources(&self) -> u32
pub fn num_data_sources(&self) -> u32
Returns the value of num_data_sources, or the default value if num_data_sources is unset.
Trait Implementations§
Source§impl Clone for ConcurrentSessionEvent
impl Clone for ConcurrentSessionEvent
Source§fn clone(&self) -> ConcurrentSessionEvent
fn clone(&self) -> ConcurrentSessionEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConcurrentSessionEvent
impl Debug for ConcurrentSessionEvent
Source§impl Default for ConcurrentSessionEvent
impl Default for ConcurrentSessionEvent
impl Eq for ConcurrentSessionEvent
Source§impl Hash for ConcurrentSessionEvent
impl Hash for ConcurrentSessionEvent
Source§impl Message for ConcurrentSessionEvent
impl Message for ConcurrentSessionEvent
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ConcurrentSessionEvent
impl PartialEq for ConcurrentSessionEvent
Source§fn eq(&self, other: &ConcurrentSessionEvent) -> bool
fn eq(&self, other: &ConcurrentSessionEvent) -> bool
self and other values to be equal, and is used by ==.