#[repr(i32)]pub enum BluetoothTracePacketType {
HciCmd = 1,
HciEvt = 2,
HciAclRx = 3,
HciAclTx = 4,
HciScoRx = 5,
HciScoTx = 6,
HciIsoRx = 7,
HciIsoTx = 8,
}
Expand description
Describes the packet type and direction. CMD and EVT are unidirectional, so no need to differentiate the direction.
Variants§
HciCmd = 1
HciEvt = 2
HciAclRx = 3
HciAclTx = 4
HciScoRx = 5
HciScoTx = 6
HciIsoRx = 7
HciIsoTx = 8
Implementations§
Source§impl BluetoothTracePacketType
impl BluetoothTracePacketType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Trait Implementations§
Source§impl Clone for BluetoothTracePacketType
impl Clone for BluetoothTracePacketType
Source§fn clone(&self) -> BluetoothTracePacketType
fn clone(&self) -> BluetoothTracePacketType
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 BluetoothTracePacketType
impl Debug for BluetoothTracePacketType
Source§impl Default for BluetoothTracePacketType
impl Default for BluetoothTracePacketType
Source§fn default() -> BluetoothTracePacketType
fn default() -> BluetoothTracePacketType
Returns the “default value” for a type. Read more
Source§impl From<BluetoothTracePacketType> for i32
impl From<BluetoothTracePacketType> for i32
Source§fn from(value: BluetoothTracePacketType) -> i32
fn from(value: BluetoothTracePacketType) -> i32
Converts to this type from the input type.
Source§impl Hash for BluetoothTracePacketType
impl Hash for BluetoothTracePacketType
Source§impl Ord for BluetoothTracePacketType
impl Ord for BluetoothTracePacketType
Source§fn cmp(&self, other: &BluetoothTracePacketType) -> Ordering
fn cmp(&self, other: &BluetoothTracePacketType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BluetoothTracePacketType
impl PartialEq for BluetoothTracePacketType
Source§impl PartialOrd for BluetoothTracePacketType
impl PartialOrd for BluetoothTracePacketType
impl Copy for BluetoothTracePacketType
impl Eq for BluetoothTracePacketType
impl StructuralPartialEq for BluetoothTracePacketType
Auto Trait Implementations§
impl Freeze for BluetoothTracePacketType
impl RefUnwindSafe for BluetoothTracePacketType
impl Send for BluetoothTracePacketType
impl Sync for BluetoothTracePacketType
impl Unpin for BluetoothTracePacketType
impl UnwindSafe for BluetoothTracePacketType
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