pub struct L2capPendingConnection<'d, P: PacketPool> { /* private fields */ }Expand description
Implementations§
Source§impl<'d, P: PacketPool> L2capPendingConnection<'d, P>
impl<'d, P: PacketPool> L2capPendingConnection<'d, P>
Sourcepub async fn accept<T: Controller>(
self,
stack: &'d Stack<'_, T, P>,
config: &L2capChannelConfig,
) -> Result<L2capChannel<'d, P>, BleHostError<T::Error>>
pub async fn accept<T: Controller>( self, stack: &'d Stack<'_, T, P>, config: &L2capChannelConfig, ) -> Result<L2capChannel<'d, P>, BleHostError<T::Error>>
Accept the connection, negotiate parameters, and return an established channel.
Sourcepub async fn reject<T: Controller>(
self,
stack: &Stack<'_, T, P>,
result: LeCreditConnResultCode,
) -> Result<(), BleHostError<T::Error>>
pub async fn reject<T: Controller>( self, stack: &Stack<'_, T, P>, result: LeCreditConnResultCode, ) -> Result<(), BleHostError<T::Error>>
Reject the connection with the given result code.
Trait Implementations§
Source§impl<P: PacketPool> Drop for L2capPendingConnection<'_, P>
impl<P: PacketPool> Drop for L2capPendingConnection<'_, P>
Auto Trait Implementations§
impl<'d, P> Freeze for L2capPendingConnection<'d, P>
impl<'d, P> !RefUnwindSafe for L2capPendingConnection<'d, P>
impl<'d, P> !Send for L2capPendingConnection<'d, P>
impl<'d, P> !Sync for L2capPendingConnection<'d, P>
impl<'d, P> Unpin for L2capPendingConnection<'d, P>
impl<'d, P> !UnwindSafe for L2capPendingConnection<'d, P>
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