pub struct ProfileDatabase { /* private fields */ }Implementations§
Source§impl ProfileDatabase
impl ProfileDatabase
pub fn open(root: &Path) -> Result<(Self, Snapshot), OpenError>
pub fn rebuild(root: &Path) -> Result<(Self, Snapshot), String>
pub fn apply( &self, callback_txid: TxId, action: ProfileAction, ) -> Result<ApplyOutcome, String>
pub fn get_for_user( &self, user: UserId, profile_id: ProfileId, ) -> Result<Option<SavedProfile>, String>
pub fn list_for_user(&self, user: UserId) -> Result<Vec<SavedProfile>, String>
pub fn clear(&self) -> Result<(), String>
Auto Trait Implementations§
impl !Freeze for ProfileDatabase
impl RefUnwindSafe for ProfileDatabase
impl Send for ProfileDatabase
impl Sync for ProfileDatabase
impl Unpin for ProfileDatabase
impl UnsafeUnpin for ProfileDatabase
impl UnwindSafe for ProfileDatabase
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