#[repr(u64)]pub enum ConnectionRole {
CENTRAL = 0,
PERIPHERAL = 1,
}Variants§
Trait Implementations§
Source§impl Clone for ConnectionRole
impl Clone for ConnectionRole
impl Copy for ConnectionRole
Source§impl Debug for ConnectionRole
impl Debug for ConnectionRole
impl Eq for ConnectionRole
Source§impl From<ConnectionRole> for u8
impl From<ConnectionRole> for u8
Source§fn from(val: ConnectionRole) -> Self
fn from(val: ConnectionRole) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionRole> for u16
impl From<ConnectionRole> for u16
Source§fn from(val: ConnectionRole) -> Self
fn from(val: ConnectionRole) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionRole> for u32
impl From<ConnectionRole> for u32
Source§fn from(val: ConnectionRole) -> Self
fn from(val: ConnectionRole) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionRole> for u64
impl From<ConnectionRole> for u64
Source§fn from(val: ConnectionRole) -> Self
fn from(val: ConnectionRole) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionRole> for i8
impl From<ConnectionRole> for i8
Source§fn from(val: ConnectionRole) -> Self
fn from(val: ConnectionRole) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionRole> for i16
impl From<ConnectionRole> for i16
Source§fn from(val: ConnectionRole) -> Self
fn from(val: ConnectionRole) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionRole> for i32
impl From<ConnectionRole> for i32
Source§fn from(val: ConnectionRole) -> Self
fn from(val: ConnectionRole) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionRole> for i64
impl From<ConnectionRole> for i64
Source§fn from(val: ConnectionRole) -> Self
fn from(val: ConnectionRole) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConnectionRole
impl PartialEq for ConnectionRole
Source§impl SafeCmp<ConnectionRole> for ConnectionRole
impl SafeCmp<ConnectionRole> for ConnectionRole
Source§impl SafeCmp<ConnectionRole> for u64
impl SafeCmp<ConnectionRole> for u64
fn safe_eq(&self, other: ConnectionRole) -> bool
fn safe_less(&self, other: ConnectionRole) -> bool
Source§impl SafeCmp<ConnectionRole> for i64
impl SafeCmp<ConnectionRole> for i64
fn safe_eq(&self, other: ConnectionRole) -> bool
fn safe_less(&self, other: ConnectionRole) -> bool
Source§impl SafeCmp<i32> for ConnectionRole
impl SafeCmp<i32> for ConnectionRole
Source§impl SafeCmp<i64> for ConnectionRole
impl SafeCmp<i64> for ConnectionRole
Source§impl SafeCmp<u32> for ConnectionRole
impl SafeCmp<u32> for ConnectionRole
Source§impl SafeCmp<u64> for ConnectionRole
impl SafeCmp<u64> for ConnectionRole
impl StructuralPartialEq for ConnectionRole
Source§impl<V: Into<u64> + Copy> TryFromRaw<V> for ConnectionRole
impl<V: Into<u64> + Copy> TryFromRaw<V> for ConnectionRole
fn try_from_raw(val: V) -> Result<Self, Error<V>>
Auto Trait Implementations§
impl Freeze for ConnectionRole
impl RefUnwindSafe for ConnectionRole
impl Send for ConnectionRole
impl Sync for ConnectionRole
impl Unpin for ConnectionRole
impl UnsafeUnpin for ConnectionRole
impl UnwindSafe for ConnectionRole
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