pub struct VortexSession(/* private fields */);Expand description
A Vortex session encapsulates the set of extensible arrays, layouts, compute functions, dtypes, etc. that are available for use in a given context.
It is also the entry-point passed to dynamic libraries to initialize Vortex plugins.
Implementations§
Source§impl VortexSession
impl VortexSession
Sourcepub fn empty() -> Self
pub fn empty() -> Self
Create a new VortexSession with no session state.
It is recommended to use the default() method instead provided by the main vortex crate.
Sourcepub fn with<V: SessionVar + Default>(self) -> Self
pub fn with<V: SessionVar + Default>(self) -> Self
Inserts a new session variable of type V with its default value.
§Panics
If a variable of that type already exists.
Sourcepub fn with_some<V: SessionVar>(self, var: V) -> Self
pub fn with_some<V: SessionVar>(self, var: V) -> Self
Sourcepub fn allow_unknown(self) -> Self
pub fn allow_unknown(self) -> Self
Allow deserializing unknown plugin IDs as non-executable foreign placeholders.
Sourcepub fn allows_unknown(&self) -> bool
pub fn allows_unknown(&self) -> bool
Returns whether unknown plugins should deserialize as foreign placeholders.
Trait Implementations§
Source§impl Clone for VortexSession
impl Clone for VortexSession
Source§fn clone(&self) -> VortexSession
fn clone(&self) -> VortexSession
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VortexSession
impl Debug for VortexSession
Source§impl SessionExt for VortexSession
impl SessionExt for VortexSession
Source§fn get<V: SessionVar + Default>(&self) -> Ref<'_, V>
fn get<V: SessionVar + Default>(&self) -> Ref<'_, V>
Returns the scope variable of type V, or inserts a default one if it does not exist.
Source§fn get_mut<V: SessionVar + Default>(&self) -> RefMut<'_, V>
fn get_mut<V: SessionVar + Default>(&self) -> RefMut<'_, V>
Returns the scope variable of type V, or inserts a default one if it does not exist.
Note that the returned value internally holds a lock on the variable.
Source§fn session(&self) -> VortexSession
fn session(&self) -> VortexSession
VortexSession.Source§fn get_opt<V: SessionVar>(&self) -> Option<Ref<'_, V>>
fn get_opt<V: SessionVar>(&self) -> Option<Ref<'_, V>>
V if it exists.Source§fn get_mut_opt<V: SessionVar>(&self) -> Option<RefMut<'_, V>>
fn get_mut_opt<V: SessionVar>(&self) -> Option<RefMut<'_, V>>
V, if it exists. Read more