pub struct Trigger {
pub trigger_name: Option<String>,
pub producer_name: Option<String>,
pub trusted_producer_uid: Option<i32>,
pub stop_delay_ms: Option<u64>,
}
Expand description
When a TracingSession receives a trigger it records the boot time nanoseconds in the TracePacket’s timestamp field as well as the name of the producer that triggered it. We emit this data so filtering can be done on triggers received in the trace.
Fields§
§trigger_name: Option<String>
Name of the trigger which was received.
producer_name: Option<String>
The actual producer that activated |trigger|.
trusted_producer_uid: Option<i32>
The verified UID of the producer.
stop_delay_ms: Option<u64>
The value of stop_delay_ms from the configuration.
Implementations§
Source§impl Trigger
impl Trigger
Sourcepub fn trigger_name(&self) -> &str
pub fn trigger_name(&self) -> &str
Returns the value of trigger_name
, or the default value if trigger_name
is unset.
Sourcepub fn producer_name(&self) -> &str
pub fn producer_name(&self) -> &str
Returns the value of producer_name
, or the default value if producer_name
is unset.
Sourcepub fn trusted_producer_uid(&self) -> i32
pub fn trusted_producer_uid(&self) -> i32
Returns the value of trusted_producer_uid
, or the default value if trusted_producer_uid
is unset.
Sourcepub fn stop_delay_ms(&self) -> u64
pub fn stop_delay_ms(&self) -> u64
Returns the value of stop_delay_ms
, or the default value if stop_delay_ms
is unset.
Trait Implementations§
Source§impl Message for Trigger
impl Message for Trigger
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
.