pub struct EasyBluez { /* private fields */ }Implementations§
Source§impl EasyBluez
impl EasyBluez
pub fn new() -> Self
Sourcepub fn scan_interval(self, interval: Duration) -> Self
pub fn scan_interval(self, interval: Duration) -> Self
How often to scan for new BLE devices
Sourcepub fn scan_duration(self, duration: Duration) -> Self
pub fn scan_duration(self, duration: Duration) -> Self
How long to scan for new BLE devices
Sourcepub fn connect_interval(self, interval: Duration) -> Self
pub fn connect_interval(self, interval: Duration) -> Self
How often to attempt to connect to discovered devices
Sourcepub fn endpoint_interval(self, interval: Duration) -> Self
pub fn endpoint_interval(self, interval: Duration) -> Self
How often to find services/characteristics for connected devices
Sourcepub fn poll_interval(self, interval: Duration) -> Self
pub fn poll_interval(self, interval: Duration) -> Self
How often to poll readable endpoints
pub fn run(&mut self) -> EasyBluezHandle
Auto Trait Implementations§
impl Freeze for EasyBluez
impl RefUnwindSafe for EasyBluez
impl Send for EasyBluez
impl Sync for EasyBluez
impl Unpin for EasyBluez
impl UnwindSafe for EasyBluez
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