pub struct TablesInput<'t> { /* private fields */ }Expand description
An object containing table-related vtables
It’s used as a token to prove you’re allowed to read/write tables or manage their fields
Implementations§
Source§impl TablesInput<'_>
impl TablesInput<'_>
Source§impl TablesInput<'_>
impl TablesInput<'_>
Sourcepub fn get_table<T, K>(&self, name: &CStr) -> Result<T, Error>where
T: TableAccess<Key = K>,
K: Key,
pub fn get_table<T, K>(&self, name: &CStr) -> Result<T, Error>where
T: TableAccess<Key = K>,
K: Key,
§Import a table from the Falco plugin API
The key type is verified by the plugin API, so this method will return an error on mismatch
Sourcepub fn list_tables(&self) -> &[TableInfo]
pub fn list_tables(&self) -> &[TableInfo]
§List the available tables
Trait Implementations§
Auto Trait Implementations§
impl<'t> Freeze for TablesInput<'t>
impl<'t> RefUnwindSafe for TablesInput<'t>
impl<'t> !Send for TablesInput<'t>
impl<'t> !Sync for TablesInput<'t>
impl<'t> Unpin for TablesInput<'t>
impl<'t> UnsafeUnpin for TablesInput<'t>
impl<'t> UnwindSafe for TablesInput<'t>
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