pub struct HeapRequestHandlerTable { /* private fields */ }Trait Implementations§
Source§impl Debug for HeapRequestHandlerTable
impl Debug for HeapRequestHandlerTable
Source§impl Default for HeapRequestHandlerTable
impl Default for HeapRequestHandlerTable
Source§fn default() -> HeapRequestHandlerTable
fn default() -> HeapRequestHandlerTable
Returns the “default value” for a type. Read more
Source§impl RequestHandlerTable for HeapRequestHandlerTable
impl RequestHandlerTable for HeapRequestHandlerTable
fn capacity(&self) -> usize
fn len(&self) -> usize
fn destinations(&self) -> &[DestinationHash]
fn path_hashes(&self) -> &[RequestPathHash]
fn policies(&self) -> &[RequestPolicy]
Source§fn push(
&mut self,
destination: DestinationHash,
path_hash: RequestPathHash,
policy: RequestPolicy,
) -> Result<(), TablePushError>
fn push( &mut self, destination: DestinationHash, path_hash: RequestPathHash, policy: RequestPolicy, ) -> Result<(), TablePushError>
Insert a fresh handler row with an empty allow list. The wrapper owns upsert semantics and never pushes a duplicate key.
fn remove_at(&mut self, slot: usize)
fn set_policy_at(&mut self, slot: usize, policy: RequestPolicy)
fn clear_allowed_at(&mut self, slot: usize)
fn allowed_contains_at(&self, slot: usize, identity: &IdentityHash) -> bool
fn allow_at( &mut self, slot: usize, identity: IdentityHash, ) -> Result<(), TablePushError>
fn disallow_at(&mut self, slot: usize, identity: &IdentityHash)
fn is_empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for HeapRequestHandlerTable
impl RefUnwindSafe for HeapRequestHandlerTable
impl Send for HeapRequestHandlerTable
impl Sync for HeapRequestHandlerTable
impl Unpin for HeapRequestHandlerTable
impl UnsafeUnpin for HeapRequestHandlerTable
impl UnwindSafe for HeapRequestHandlerTable
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