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.
Trait Implementations§
Source§impl Clone for VortexSession
impl Clone for VortexSession
Source§fn clone(&self) -> VortexSession
fn clone(&self) -> VortexSession
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>(&self) -> Ref<'_, V>
fn get<V: SessionVar>(&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>(&self) -> RefMut<'_, V>
fn get_mut<V: SessionVar>(&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
Returns the
VortexSession.Auto Trait Implementations§
impl Freeze for VortexSession
impl !RefUnwindSafe for VortexSession
impl Send for VortexSession
impl Sync for VortexSession
impl Unpin for VortexSession
impl !UnwindSafe for VortexSession
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