pub struct TableFunctionInfo<V: VTab> { /* private fields */ }Expand description
An interface to store and retrieve data during the table function’s execution stage.
Implementations§
Source§impl<V: VTab> TableFunctionInfo<V>
impl<V: VTab> TableFunctionInfo<V>
Sourcepub fn bind_data(&self) -> &V::BindData
pub fn bind_data(&self) -> &V::BindData
The bind data produced by VTab::bind for this call. Read-only.
Sourcepub fn init_data(&self) -> &V::InitData
pub fn init_data(&self) -> &V::InitData
The init data produced by VTab::init for this call. Shared across
every worker thread executing this query, so any interior mutation must
be synchronized.
Sourcepub fn local_init_data<T>(&self) -> Option<&T>
pub fn local_init_data<T>(&self) -> Option<&T>
The data produced by VTabLocalInit::local_init for this worker
thread, if the function registered a local-init callback. Returns
None if no local-init callback was registered.
§Safety
The caller must request the same T that was stored by the local-init
callback; there is no runtime type check.
Sourcepub fn extra_info<T>(&self) -> Option<&T>
pub fn extra_info<T>(&self) -> Option<&T>
The registration-time “extra info”, if any — see BindInfo::extra_info.
§Safety
The caller must request the same T that was stored at registration
time; there is no runtime type check.