pub trait FrameLink {
// Required methods
async fn send_frame(&mut self, frame: &[u8]) -> Result<(), UlcpError>;
fn poll_recv_frame(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Vec<u8>, UlcpError>>;
// Provided method
async fn recv_frame(&mut self) -> Result<Vec<u8>, UlcpError> { ... }
}Expand description
A cancel-safe, frame-oriented ULCP transport.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl FrameLink for BleFrameLink
Available on crate feature
ble-radio only.