pub struct BluetoothTraceEvent {
pub packet_type: Option<i32>,
pub count: Option<u32>,
pub length: Option<u32>,
pub duration: Option<u32>,
pub op_code: Option<u32>,
pub event_code: Option<u32>,
pub subevent_code: Option<u32>,
pub connection_handle: Option<u32>,
}
Expand description
Trace event for bluetooth
Fields§
§packet_type: Option<i32>
Packet type and direction
count: Option<u32>
Total count of the packets collected during the collection interval
length: Option<u32>
Total cumulative length of the packets collected during the collection interval
duration: Option<u32>
The collection interval in nanoseconds. This is the duration between the first and last packets collected.
op_code: Option<u32>
In case of CMD type, further breakdown of the type of command
event_code: Option<u32>
In the case of EVT type, further breakdown of the type of event
subevent_code: Option<u32>
When applicable for EVT type, further breakdown of event type into specific subevent
connection_handle: Option<u32>
Associated handle for the bluetooth packet
Implementations§
Source§impl BluetoothTraceEvent
impl BluetoothTraceEvent
Sourcepub fn packet_type(&self) -> BluetoothTracePacketType
pub fn packet_type(&self) -> BluetoothTracePacketType
Returns the enum value of packet_type
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_packet_type(&mut self, value: BluetoothTracePacketType)
pub fn set_packet_type(&mut self, value: BluetoothTracePacketType)
Sets packet_type
to the provided enum value.
Sourcepub fn length(&self) -> u32
pub fn length(&self) -> u32
Returns the value of length
, or the default value if length
is unset.
Sourcepub fn duration(&self) -> u32
pub fn duration(&self) -> u32
Returns the value of duration
, or the default value if duration
is unset.
Sourcepub fn op_code(&self) -> u32
pub fn op_code(&self) -> u32
Returns the value of op_code
, or the default value if op_code
is unset.
Sourcepub fn event_code(&self) -> u32
pub fn event_code(&self) -> u32
Returns the value of event_code
, or the default value if event_code
is unset.
Sourcepub fn subevent_code(&self) -> u32
pub fn subevent_code(&self) -> u32
Returns the value of subevent_code
, or the default value if subevent_code
is unset.
Sourcepub fn connection_handle(&self) -> u32
pub fn connection_handle(&self) -> u32
Returns the value of connection_handle
, or the default value if connection_handle
is unset.
Trait Implementations§
Source§impl Clone for BluetoothTraceEvent
impl Clone for BluetoothTraceEvent
Source§fn clone(&self) -> BluetoothTraceEvent
fn clone(&self) -> BluetoothTraceEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BluetoothTraceEvent
impl Debug for BluetoothTraceEvent
Source§impl Default for BluetoothTraceEvent
impl Default for BluetoothTraceEvent
Source§impl Message for BluetoothTraceEvent
impl Message for BluetoothTraceEvent
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
.