pub struct StoreRw<T: LoadPage> { /* private fields */ }
Implementations§
Source§impl<T: LoadPage<Error = Error>> StoreRw<T>
impl<T: LoadPage<Error = Error>> StoreRw<T>
pub fn name(&self, id: u64) -> Result<Option<&str>, Error>
pub fn due_date(&self, id: u64) -> Result<Option<NaiveDateTime>, Error>
pub fn first_session(&self, id: u64) -> Result<Option<Session>, Error>
pub fn child_ids(&self, id: u64) -> Result<ChildIdIter<'_, T>, Error>
pub fn sessions<'r>( &'r self, id: u64, ) -> Result<impl Iterator<Item = Result<(&'r u64, &'r Session), Error>>, Error>
pub fn all_names<'r>( &'r self, ) -> Result<impl Iterator<Item = Result<(&'r u64, &'r str), Error>>, Error>
pub fn all_sessions<'s>( &'s self, ) -> Result<impl Iterator<Item = Result<(&'s Session, &'s u64), Error>>, Error>
Source§impl<'env> StoreRw<MutTxn<&'env Env, ()>>
impl<'env> StoreRw<MutTxn<&'env Env, ()>>
pub fn add_child(&mut self, pid: u64, name: &str) -> Result<u64, Error>
pub fn add_session(&mut self, id: u64, session: &Session) -> Result<(), Error>
pub fn delete(&mut self, pid: u64, id: u64) -> Result<(), Error>
pub fn delete_session( &mut self, id: u64, session: &Session, ) -> Result<(), Error>
pub fn rename(&mut self, id: u64, name: &str) -> Result<(), Error>
pub fn set_due_date( &mut self, id: u64, date: NaiveDateTime, ) -> Result<(), Error>
pub fn unset_due_date(&mut self, id: u64) -> Result<(), Error>
pub fn move_up(&mut self, pid: u64, id: u64) -> Result<(), Error>
pub fn move_down(&mut self, pid: u64, id: u64) -> Result<(), Error>
pub fn cut(&mut self, src_pid: u64, src: u64, dest: u64) -> Result<bool, Error>
pub fn commit(self) -> Result<(), Error>
Auto Trait Implementations§
impl<T> Freeze for StoreRw<T>where
T: Freeze,
impl<T> RefUnwindSafe for StoreRw<T>where
T: RefUnwindSafe,
impl<T> Send for StoreRw<T>where
T: Send,
impl<T> Sync for StoreRw<T>where
T: Sync,
impl<T> Unpin for StoreRw<T>where
T: Unpin,
impl<T> UnwindSafe for StoreRw<T>where
T: UnwindSafe,
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