pub struct BT { /* private fields */ }Implementations§
Source§impl BT
impl BT
pub fn new_master( slave: &[u8; 6], pin: &[u8; 4], read_period_ms: u32, ) -> Option<Self>
pub fn new_slave(read_period_ms: u32) -> Option<Self>
pub fn write(&self, value: BtValue) -> bool
pub fn read(&self) -> BtValue
pub fn read_count(&self) -> usize
pub fn is_connected(&self) -> bool
pub fn set_read_period(&self, ms: u32)
Auto Trait Implementations§
impl Freeze for BT
impl RefUnwindSafe for BT
impl !Send for BT
impl !Sync for BT
impl Unpin for BT
impl UnwindSafe for BT
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