pub struct L2capServer { /* private fields */ }Implementations§
Source§impl L2capServer
impl L2capServer
pub fn create(psm: u16, mtu: u16) -> Result<&'static mut L2capServer, BLEError>
pub fn tx(&mut self, channel: L2capChannel, data: &[u8]) -> Result<(), BLEError>
pub async fn rx(&mut self) -> ReceivedData
Trait Implementations§
impl Send for L2capServer
Auto Trait Implementations§
impl !Freeze for L2capServer
impl !RefUnwindSafe for L2capServer
impl !Sync for L2capServer
impl Unpin for L2capServer
impl UnsafeUnpin for L2capServer
impl UnwindSafe for L2capServer
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§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