pub struct BleFrameLink { /* private fields */ }Expand description
GATT/SAR frame transport backed by btleplug.
Implementations§
Source§impl BleFrameLink
impl BleFrameLink
Sourcepub async fn scan(timeout: Duration) -> Result<Vec<BleScanResult>, UlcpError>
pub async fn scan(timeout: Duration) -> Result<Vec<BleScanResult>, UlcpError>
Scan for ULCP GATT Service peripherals without connecting.
Runs discovery for the full timeout and reports every matching
peripheral seen, so nearby radios all get listed (unlike
connect, which returns as soon as a match
appears).
Sourcepub async fn connect(
selector: Option<&str>,
config: BleFrameLinkConfig,
) -> Result<Self, UlcpError>
pub async fn connect( selector: Option<&str>, config: BleFrameLinkConfig, ) -> Result<Self, UlcpError>
Discover and attach to a ULCP GATT Service peripheral.
selector matches a local-name substring or the platform peripheral ID.
With no selector, discovery must yield exactly one companion radio.
Trait Implementations§
Source§impl FrameLink for BleFrameLink
Available on crate feature ble-radio only.
impl FrameLink for BleFrameLink
Available on crate feature
ble-radio only.Auto Trait Implementations§
impl Freeze for BleFrameLink
impl !RefUnwindSafe for BleFrameLink
impl Send for BleFrameLink
impl Sync for BleFrameLink
impl Unpin for BleFrameLink
impl !UnwindSafe for BleFrameLink
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more