pub struct L2capChannelReader<'d> { /* private fields */ }
Expand description
Handle representing an L2CAP channel write endpoint.
Implementations§
Source§impl<'d> L2capChannelReader<'d>
impl<'d> L2capChannelReader<'d>
Sourcepub fn disconnect(&mut self)
pub fn disconnect(&mut self)
Disconnect this channel.
Sourcepub async fn receive<T: Controller>(
&mut self,
stack: &Stack<'_, T>,
buf: &mut [u8],
) -> Result<usize, BleHostError<T::Error>>
pub async fn receive<T: Controller>( &mut self, stack: &Stack<'_, T>, buf: &mut [u8], ) -> Result<usize, BleHostError<T::Error>>
Receive data on this channel and copy it into the buffer.
The length provided buffer slice must be equal or greater to the agreed MTU.
Trait Implementations§
Source§impl Drop for L2capChannelReader<'_>
impl Drop for L2capChannelReader<'_>
Auto Trait Implementations§
impl<'d> Freeze for L2capChannelReader<'d>
impl<'d> !RefUnwindSafe for L2capChannelReader<'d>
impl<'d> !Send for L2capChannelReader<'d>
impl<'d> !Sync for L2capChannelReader<'d>
impl<'d> Unpin for L2capChannelReader<'d>
impl<'d> !UnwindSafe for L2capChannelReader<'d>
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