pub struct BLEConnDesc(/* private fields */);

Implementations§

source§

impl BLEConnDesc

source

pub fn address(&self) -> BLEAddress

Gets the over-the-air address of the connected peer

source

pub fn id_address(&self) -> BLEAddress

Gets the ID address of the connected peer

source

pub fn conn_handle(&self) -> u16

Gets the connection handle of the connected peer

source

pub fn interval(&self) -> u16

Gets the connection interval for this connection (in 1.25ms units)

source

pub fn timeout(&self) -> u16

Gets the supervision timeout for this connection (in 10ms units)

source

pub fn latency(&self) -> u16

Gets the allowable latency for this connection (unit = number of intervals)

source

pub fn mtu(&self) -> u16

Gets the maximum transmission unit size for this connection (in bytes)

source

pub fn bonded(&self) -> bool

Check if we are connected to a bonded peer

source

pub fn encrypted(&self) -> bool

Check if the connection in encrypted

source

pub fn authenticated(&self) -> bool

Check if the the connection has been authenticated

source

pub fn sec_key_size(&self) -> u32

Gets the key size used to encrypt the connection

source

pub fn get_rssi(&self) -> Result<i8, BLEError>

Retrieves the most-recently measured RSSI. A connection’s RSSI is updated whenever a data channel PDU is received.

Trait Implementations§

source§

impl Debug for BLEConnDesc

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for BLEConnDesc

§

impl Send for BLEConnDesc

§

impl Sync for BLEConnDesc

§

impl Unpin for BLEConnDesc

§

impl UnwindSafe for BLEConnDesc

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.