pub struct TracingServiceCapabilities {
pub has_query_capabilities: Option<bool>,
pub observable_events: Vec<i32>,
pub has_trace_config_output_path: Option<bool>,
pub has_clone_session: Option<bool>,
}
Fields§
§has_query_capabilities: Option<bool>
Whether the service supports QueryCapabilities() at all or not. This is only used at the C++ level to distinguish the case of talking to an older version of the service that doesn’t support QueryCapabilities(). In that case the IPC layer will just reject the unknown call, and the consumer_ipc_client_impl.cc will return an empty message where this field is false. In all other cases, this is always set to true.
observable_events: Vec<i32>
The set of known events that can be passed to ConsumerPort.ObserveEvents().
has_trace_config_output_path: Option<bool>
Whether the service supports TraceConfig.output_path (for asking traced to create the output file instead of passing a file descriptor).
has_clone_session: Option<bool>
Whether the service supports CloneSession and CLONE_SNAPSHOT triggers.
Implementations§
Source§impl TracingServiceCapabilities
impl TracingServiceCapabilities
Sourcepub fn has_query_capabilities(&self) -> bool
pub fn has_query_capabilities(&self) -> bool
Returns the value of has_query_capabilities
, or the default value if has_query_capabilities
is unset.
Sourcepub fn observable_events(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Type>>
pub fn observable_events( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Type>>
Returns an iterator which yields the valid enum values contained in observable_events
.
Sourcepub fn push_observable_events(&mut self, value: Type)
pub fn push_observable_events(&mut self, value: Type)
Appends the provided enum value to observable_events
.
Sourcepub fn has_trace_config_output_path(&self) -> bool
pub fn has_trace_config_output_path(&self) -> bool
Returns the value of has_trace_config_output_path
, or the default value if has_trace_config_output_path
is unset.
Sourcepub fn has_clone_session(&self) -> bool
pub fn has_clone_session(&self) -> bool
Returns the value of has_clone_session
, or the default value if has_clone_session
is unset.
Trait Implementations§
Source§impl Clone for TracingServiceCapabilities
impl Clone for TracingServiceCapabilities
Source§fn clone(&self) -> TracingServiceCapabilities
fn clone(&self) -> TracingServiceCapabilities
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TracingServiceCapabilities
impl Debug for TracingServiceCapabilities
Source§impl Default for TracingServiceCapabilities
impl Default for TracingServiceCapabilities
Source§impl Message for TracingServiceCapabilities
impl Message for TracingServiceCapabilities
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
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<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,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
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,
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,
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,
self
.impl StructuralPartialEq for TracingServiceCapabilities
Auto Trait Implementations§
impl Freeze for TracingServiceCapabilities
impl RefUnwindSafe for TracingServiceCapabilities
impl Send for TracingServiceCapabilities
impl Sync for TracingServiceCapabilities
impl Unpin for TracingServiceCapabilities
impl UnwindSafe for TracingServiceCapabilities
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)