pub struct FramedBleStream<S> { /* private fields */ }Expand description
Packet-preserving FIPS view over an ordered BLE byte stream.
Frames are segmented into raw writes no larger than the platform-reported send MTU. The send mutex prevents concurrent FIPS packets from interleaving.
Implementations§
Trait Implementations§
Source§impl<S: BleStream> BleStream for FramedBleStream<S>
impl<S: BleStream> BleStream for FramedBleStream<S>
Source§async fn send(&self, data: &[u8]) -> Result<(), TransportError>
async fn send(&self, data: &[u8]) -> Result<(), TransportError>
Send data over the L2CAP connection.
Source§async fn recv(&self, output: &mut [u8]) -> Result<usize, TransportError>
async fn recv(&self, output: &mut [u8]) -> Result<usize, TransportError>
Receive data from the L2CAP connection. Read more
Source§fn remote_addr(&self) -> &BleAddr
fn remote_addr(&self) -> &BleAddr
Get the remote device address.
Auto Trait Implementations§
impl<S> !Freeze for FramedBleStream<S>
impl<S> !RefUnwindSafe for FramedBleStream<S>
impl<S> Send for FramedBleStream<S>where
S: Send,
impl<S> Sync for FramedBleStream<S>where
S: Sync,
impl<S> Unpin for FramedBleStream<S>where
S: Unpin,
impl<S> UnsafeUnpin for FramedBleStream<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for FramedBleStream<S>where
S: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more