#[repr(i32)]pub enum EBluetoothDeviceType {
KBluetoothDeviceTypeInvalid = 0,
KBluetoothDeviceTypeUnknown = 1,
KBluetoothDeviceTypePhone = 2,
KBluetoothDeviceTypeComputer = 3,
KBluetoothDeviceTypeHeadset = 4,
KBluetoothDeviceTypeHeadphones = 5,
KBluetoothDeviceTypeSpeakers = 6,
KBluetoothDeviceTypeOtherAudio = 7,
KBluetoothDeviceTypeMouse = 8,
KBluetoothDeviceTypeJoystick = 9,
KBluetoothDeviceTypeGamepad = 10,
KBluetoothDeviceTypeKeyboard = 11,
}Variants§
KBluetoothDeviceTypeInvalid = 0
KBluetoothDeviceTypeUnknown = 1
KBluetoothDeviceTypePhone = 2
KBluetoothDeviceTypeComputer = 3
KBluetoothDeviceTypeHeadset = 4
KBluetoothDeviceTypeHeadphones = 5
KBluetoothDeviceTypeSpeakers = 6
KBluetoothDeviceTypeOtherAudio = 7
KBluetoothDeviceTypeMouse = 8
KBluetoothDeviceTypeJoystick = 9
KBluetoothDeviceTypeGamepad = 10
KBluetoothDeviceTypeKeyboard = 11
Implementations§
Source§impl EBluetoothDeviceType
impl EBluetoothDeviceType
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of EBluetoothDeviceType.
Sourcepub fn from_i32(value: i32) -> Option<EBluetoothDeviceType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<EBluetoothDeviceType>
Use the TryFrom<i32> implementation instead
Converts an i32 to a EBluetoothDeviceType, or None if value is not a valid variant.
Source§impl EBluetoothDeviceType
impl EBluetoothDeviceType
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.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for EBluetoothDeviceType
impl Clone for EBluetoothDeviceType
Source§fn clone(&self) -> EBluetoothDeviceType
fn clone(&self) -> EBluetoothDeviceType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EBluetoothDeviceType
Source§impl Debug for EBluetoothDeviceType
impl Debug for EBluetoothDeviceType
Source§impl Default for EBluetoothDeviceType
impl Default for EBluetoothDeviceType
Source§fn default() -> EBluetoothDeviceType
fn default() -> EBluetoothDeviceType
Returns the “default value” for a type. Read more
impl Eq for EBluetoothDeviceType
Source§impl From<EBluetoothDeviceType> for i32
impl From<EBluetoothDeviceType> for i32
Source§fn from(value: EBluetoothDeviceType) -> i32
fn from(value: EBluetoothDeviceType) -> i32
Converts to this type from the input type.
Source§impl Hash for EBluetoothDeviceType
impl Hash for EBluetoothDeviceType
Source§impl Ord for EBluetoothDeviceType
impl Ord for EBluetoothDeviceType
Source§fn cmp(&self, other: &EBluetoothDeviceType) -> Ordering
fn cmp(&self, other: &EBluetoothDeviceType) -> Ordering
1.21.0 (const: unstable) · 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 EBluetoothDeviceType
impl PartialEq for EBluetoothDeviceType
Source§fn eq(&self, other: &EBluetoothDeviceType) -> bool
fn eq(&self, other: &EBluetoothDeviceType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EBluetoothDeviceType
impl PartialOrd for EBluetoothDeviceType
impl StructuralPartialEq for EBluetoothDeviceType
Source§impl TryFrom<i32> for EBluetoothDeviceType
impl TryFrom<i32> for EBluetoothDeviceType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<EBluetoothDeviceType, UnknownEnumValue>
fn try_from(value: i32) -> Result<EBluetoothDeviceType, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EBluetoothDeviceType
impl RefUnwindSafe for EBluetoothDeviceType
impl Send for EBluetoothDeviceType
impl Sync for EBluetoothDeviceType
impl Unpin for EBluetoothDeviceType
impl UnsafeUnpin for EBluetoothDeviceType
impl UnwindSafe for EBluetoothDeviceType
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