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