pub struct PbBleDevice {Show 28 fields
pub paired: PbSystemDateTime,
pub last_modified: PbSystemDateTime,
pub manufacturer: i32,
pub deleted_time_stamp: Option<PbSystemDateTime>,
pub mac: Option<PbBleMac>,
pub device_id: Option<String>,
pub name: Option<String>,
pub battery_level: Option<u32>,
pub manufacturer_name: Option<String>,
pub model_name: Option<String>,
pub peer_ltk: Option<Vec<u8>>,
pub peer_irk: Option<Vec<u8>>,
pub peer_csrk: Option<Vec<u8>>,
pub available_features: Vec<i32>,
pub services: Vec<PbBleService>,
pub peer_rand: Option<Vec<u8>>,
pub peer_ediv: Option<u32>,
pub encr_key_size: Option<u32>,
pub distributed_keys: Option<u32>,
pub authenticated: Option<bool>,
pub sensor_location: Option<i32>,
pub software_version: Option<String>,
pub secondary_software_version: Option<String>,
pub serial_number: Option<String>,
pub local_ltk: Option<Vec<u8>>,
pub local_rand: Option<Vec<u8>>,
pub local_ediv: Option<u32>,
pub user_data: Vec<PbBleUser>,
}Fields§
§paired: PbSystemDateTime§last_modified: PbSystemDateTime§manufacturer: i32§deleted_time_stamp: Option<PbSystemDateTime>§mac: Option<PbBleMac>§device_id: Option<String>§name: Option<String>§battery_level: Option<u32>§manufacturer_name: Option<String>§model_name: Option<String>§peer_ltk: Option<Vec<u8>>§peer_irk: Option<Vec<u8>>§peer_csrk: Option<Vec<u8>>§available_features: Vec<i32>§services: Vec<PbBleService>§peer_rand: Option<Vec<u8>>§peer_ediv: Option<u32>§encr_key_size: Option<u32>§distributed_keys: Option<u32>§authenticated: Option<bool>§sensor_location: Option<i32>§software_version: Option<String>§secondary_software_version: Option<String>§serial_number: Option<String>§local_ltk: Option<Vec<u8>>§local_rand: Option<Vec<u8>>§local_ediv: Option<u32>§user_data: Vec<PbBleUser>Implementations§
Source§impl PbBleDevice
impl PbBleDevice
pub fn manufacturer(&self) -> PbDeviceManufacturerType
pub fn set_manufacturer(&mut self, value: PbDeviceManufacturerType)
pub fn device_id(&self) -> &str
pub fn name(&self) -> &str
pub fn battery_level(&self) -> u32
pub fn manufacturer_name(&self) -> &str
pub fn model_name(&self) -> &str
pub fn peer_ltk(&self) -> &[u8] ⓘ
pub fn peer_irk(&self) -> &[u8] ⓘ
pub fn peer_csrk(&self) -> &[u8] ⓘ
pub fn available_features( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<PbFeatureType>>
pub fn push_available_features(&mut self, value: PbFeatureType)
pub fn peer_rand(&self) -> &[u8] ⓘ
pub fn peer_ediv(&self) -> u32
pub fn encr_key_size(&self) -> u32
pub fn distributed_keys(&self) -> u32
pub fn authenticated(&self) -> bool
pub fn sensor_location(&self) -> PbSensorLocation
pub fn set_sensor_location(&mut self, value: PbSensorLocation)
pub fn software_version(&self) -> &str
pub fn secondary_software_version(&self) -> &str
pub fn serial_number(&self) -> &str
pub fn local_ltk(&self) -> &[u8] ⓘ
pub fn local_rand(&self) -> &[u8] ⓘ
pub fn local_ediv(&self) -> u32
Trait Implementations§
Source§impl Clone for PbBleDevice
impl Clone for PbBleDevice
Source§fn clone(&self) -> PbBleDevice
fn clone(&self) -> PbBleDevice
Returns a duplicate 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 PbBleDevice
impl Debug for PbBleDevice
Source§impl Default for PbBleDevice
impl Default for PbBleDevice
Source§fn default() -> PbBleDevice
fn default() -> PbBleDevice
Returns the “default value” for a type. Read more
Source§impl Message for PbBleDevice
impl Message for PbBleDevice
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for PbBleDevice
impl PartialEq for PbBleDevice
impl StructuralPartialEq for PbBleDevice
Auto Trait Implementations§
impl Freeze for PbBleDevice
impl RefUnwindSafe for PbBleDevice
impl Send for PbBleDevice
impl Sync for PbBleDevice
impl Unpin for PbBleDevice
impl UnwindSafe for PbBleDevice
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