#[non_exhaustive]#[repr(C)]pub struct ConnInfo {
pub hci_handle: u16,
pub dev_class: [u8; 3],
}
Available on crate feature
rfcomm
only.Expand description
RFCOMM socket connection information.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.hci_handle: u16
Host controller interface (HCI) handle for the connection.
dev_class: [u8; 3]
Device class.
Trait Implementations§
source§impl Clone for rfcomm_conninfo
impl Clone for rfcomm_conninfo
source§fn clone(&self) -> rfcomm_conninfo
fn clone(&self) -> rfcomm_conninfo
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 rfcomm_conninfo
impl Debug for rfcomm_conninfo
source§impl<'de> Deserialize<'de> for rfcomm_conninfo
impl<'de> Deserialize<'de> for rfcomm_conninfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for rfcomm_conninfo
impl PartialEq for rfcomm_conninfo
source§fn eq(&self, other: &rfcomm_conninfo) -> bool
fn eq(&self, other: &rfcomm_conninfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for rfcomm_conninfo
impl Serialize for rfcomm_conninfo
impl Eq for rfcomm_conninfo
impl StructuralPartialEq for rfcomm_conninfo
Auto Trait Implementations§
impl Freeze for rfcomm_conninfo
impl RefUnwindSafe for rfcomm_conninfo
impl Send for rfcomm_conninfo
impl Sync for rfcomm_conninfo
impl Unpin for rfcomm_conninfo
impl UnwindSafe for rfcomm_conninfo
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