pub struct FixedHeapTransportedLinkTable<const MAX_TRANSIT_LINKS: usize, A = Global>where
A: Allocator,{ /* private fields */ }Expand description
A fixed number of transported-link rows reserved directly in a caller-selected heap.
ESP32-S3 uses this with its PSRAM allocator so relay capacity does not consume internal SRAM.
Trait Implementations§
Source§impl<const MAX_TRANSIT_LINKS: usize, A> Default for FixedHeapTransportedLinkTable<MAX_TRANSIT_LINKS, A>
Available on crate feature external-alloc only.
impl<const MAX_TRANSIT_LINKS: usize, A> Default for FixedHeapTransportedLinkTable<MAX_TRANSIT_LINKS, A>
Available on crate feature
external-alloc only.Source§fn default() -> FixedHeapTransportedLinkTable<MAX_TRANSIT_LINKS, A>
fn default() -> FixedHeapTransportedLinkTable<MAX_TRANSIT_LINKS, A>
Returns the “default value” for a type. Read more
Source§impl<const MAX_TRANSIT_LINKS: usize, A> TransportedLinkTable for FixedHeapTransportedLinkTable<MAX_TRANSIT_LINKS, A>where
A: Allocator,
Available on crate feature external-alloc only.
impl<const MAX_TRANSIT_LINKS: usize, A> TransportedLinkTable for FixedHeapTransportedLinkTable<MAX_TRANSIT_LINKS, A>where
A: Allocator,
Available on crate feature
external-alloc only.fn capacity(&self) -> usize
fn len(&self) -> usize
fn entries(&self) -> &[TransportedLink]
fn entries_mut(&mut self) -> &mut [TransportedLink]
fn push(&mut self, entry: TransportedLink) -> Result<(), TablePushError>
fn swap_remove(&mut self, index: usize)
fn is_empty(&self) -> bool
fn index_of(&self, link_id: &LinkId) -> Option<usize>
fn deadline_updated(&mut self, _index: usize)
fn earliest_indexed_deadline(&mut self) -> Option<InstantMillis>
fn first_overdue(&mut self, now: InstantMillis) -> Option<usize>
Auto Trait Implementations§
impl<const MAX_TRANSIT_LINKS: usize, A> Freeze for FixedHeapTransportedLinkTable<MAX_TRANSIT_LINKS, A>where
A: Freeze,
impl<const MAX_TRANSIT_LINKS: usize, A> RefUnwindSafe for FixedHeapTransportedLinkTable<MAX_TRANSIT_LINKS, A>where
A: RefUnwindSafe,
impl<const MAX_TRANSIT_LINKS: usize, A> Send for FixedHeapTransportedLinkTable<MAX_TRANSIT_LINKS, A>where
A: Send,
impl<const MAX_TRANSIT_LINKS: usize, A> Sync for FixedHeapTransportedLinkTable<MAX_TRANSIT_LINKS, A>where
A: Sync,
impl<const MAX_TRANSIT_LINKS: usize, A> Unpin for FixedHeapTransportedLinkTable<MAX_TRANSIT_LINKS, A>where
A: Unpin,
impl<const MAX_TRANSIT_LINKS: usize, A> UnsafeUnpin for FixedHeapTransportedLinkTable<MAX_TRANSIT_LINKS, A>where
A: UnsafeUnpin,
impl<const MAX_TRANSIT_LINKS: usize, A> UnwindSafe for FixedHeapTransportedLinkTable<MAX_TRANSIT_LINKS, A>where
A: UnwindSafe,
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