Struct semilattice_database_session::Session
source · pub struct Session { /* private fields */ }Implementations§
source§impl Session
impl Session
pub fn name(&self) -> &str
pub fn set_sequence_cursor(&mut self, current: usize)
pub fn sequence_cursor(&self) -> Option<SequenceCursor>
pub fn new_data( session_dir: &Path, expire_interval_sec: Option<i64> ) -> SessionData
pub fn begin_search(&self, collection_id: i32) -> SessionSearch<'_>
pub fn search(&self, search: &Arc<RwLock<Search>>) -> SessionSearch<'_>
pub fn field_bytes<'a>( &'a self, database: &'a SessionDatabase, collection_id: i32, row: i64, key: &str ) -> &[u8] ⓘ
pub fn collection_field_bytes<'a>( &'a self, collection: &'a Collection, row: i64, key: &str ) -> &[u8] ⓘ
pub fn temporary_collection( &self, collection_id: i32 ) -> Option<&HashMap<i64, TemporaryDataEntity>>
pub fn depends(&self, key: Option<&str>, pend_row: u32) -> Option<Vec<Depend>>
Auto Trait Implementations§
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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