pub struct HostResources<C: Controller, P: PacketPool, const CONNS: usize, const CHANNELS: usize, const ADV_SETS: usize = 1, const BONDS: usize = 10> { /* private fields */ }Expand description
HostResources holds the resources used by the host.
The l2cap packet pool is used by the host to handle inbound data, by allocating space for incoming packets and dispatching to the appropriate connection and channel.
Implementations§
Source§impl<C: Controller, P: PacketPool, const CONNS: usize, const CHANNELS: usize, const ADV_SETS: usize, const BONDS: usize> HostResources<C, P, CONNS, CHANNELS, ADV_SETS, BONDS>
impl<C: Controller, P: PacketPool, const CONNS: usize, const CHANNELS: usize, const ADV_SETS: usize, const BONDS: usize> HostResources<C, P, CONNS, CHANNELS, ADV_SETS, BONDS>
Trait Implementations§
Source§impl<C: Controller, P: PacketPool, const CONNS: usize, const CHANNELS: usize, const ADV_SETS: usize, const BONDS: usize> Default for HostResources<C, P, CONNS, CHANNELS, ADV_SETS, BONDS>
impl<C: Controller, P: PacketPool, const CONNS: usize, const CHANNELS: usize, const ADV_SETS: usize, const BONDS: usize> Default for HostResources<C, P, CONNS, CHANNELS, ADV_SETS, BONDS>
Auto Trait Implementations§
impl<C, P, const CONNS: usize, const CHANNELS: usize, const ADV_SETS: usize = 1, const BONDS: usize = 10> !Freeze for HostResources<C, P, CONNS, CHANNELS, ADV_SETS, BONDS>
impl<C, P, const CONNS: usize, const CHANNELS: usize, const ADV_SETS: usize = 1, const BONDS: usize = 10> !RefUnwindSafe for HostResources<C, P, CONNS, CHANNELS, ADV_SETS, BONDS>
impl<C, P, const CONNS: usize, const CHANNELS: usize, const ADV_SETS: usize = 1, const BONDS: usize = 10> !Send for HostResources<C, P, CONNS, CHANNELS, ADV_SETS, BONDS>
impl<C, P, const CONNS: usize, const CHANNELS: usize, const ADV_SETS: usize = 1, const BONDS: usize = 10> !Sync for HostResources<C, P, CONNS, CHANNELS, ADV_SETS, BONDS>
impl<C, P, const CONNS: usize, const CHANNELS: usize, const ADV_SETS: usize, const BONDS: usize> Unpin for HostResources<C, P, CONNS, CHANNELS, ADV_SETS, BONDS>
impl<C, P, const CONNS: usize, const CHANNELS: usize, const ADV_SETS: usize = 1, const BONDS: usize = 10> !UnwindSafe for HostResources<C, P, CONNS, CHANNELS, ADV_SETS, BONDS>
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