pub struct ParameterTable<'s> { /* private fields */ }Expand description
The slot table a ParameterServer borrows.
phase-382 W2’ — the server’s storage is CALLER-OWNED, and this newtype is
what makes that expressible without publishing the slot type. A slot is a
ParameterEntry, which stays PRIVATE (it is the store’s internal slot
layout, not an API); a consumer that only needs to name the storage —
nros-node, which carves it out of the executor backing in W3’ — names a
ParameterTable instead.
The table’s LENGTH is the server’s capacity. MAX_PARAMETERS is the
DEFAULT capacity (see ParameterStorage), not a bound the borrow
re-imposes: a caller who hands over a longer or shorter table gets exactly
that many slots, and every capacity question the server answers
(is_full, the declare path) reads it from
here.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'s> !UnwindSafe for ParameterTable<'s>
impl<'s> Freeze for ParameterTable<'s>
impl<'s> RefUnwindSafe for ParameterTable<'s>
impl<'s> Send for ParameterTable<'s>
impl<'s> Sync for ParameterTable<'s>
impl<'s> Unpin for ParameterTable<'s>
impl<'s> UnsafeUnpin for ParameterTable<'s>
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