pub struct Device {
pub name: String,
pub id: String,
pub rssi: i32,
pub characteristic: HashMap<String, Characteristic>,
pub discover: bool,
pub connect: bool,
pub disable: bool,
pub last_seen: Instant,
pub types: Types,
}Expand description
蓝牙设备
Fields§
§name: String设备名称
id: String设备id
rssi: i32设备信号
characteristic: HashMap<String, Characteristic>服务列表
discover: bool发现
connect: bool连接
disable: bool禁用
last_seen: Instant§types: Types环境类型
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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