pub struct RegistryMut<'src> { /* private fields */ }Implementations§
Source§impl<'src> RegistryMut<'src>
impl<'src> RegistryMut<'src>
pub fn add(&mut self, entry: RegistryEntry) -> OutpostResult<()>
pub fn update_path(&mut self, old: &Path, new: PathBuf) -> OutpostResult<()>
pub fn lock(&mut self, path: &Path, reason: Option<String>) -> OutpostResult<()>
pub fn unlock(&mut self, path: &Path) -> OutpostResult<()>
pub fn remove_by_path(&mut self, path: &Path) -> OutpostResult<bool>
pub fn entries(&self) -> &[RegistryEntry]
pub fn save(self) -> OutpostResult<()>
Trait Implementations§
Source§impl<'src> Drop for RegistryMut<'src>
impl<'src> Drop for RegistryMut<'src>
Auto Trait Implementations§
impl<'src> Freeze for RegistryMut<'src>
impl<'src> RefUnwindSafe for RegistryMut<'src>
impl<'src> Send for RegistryMut<'src>
impl<'src> Sync for RegistryMut<'src>
impl<'src> Unpin for RegistryMut<'src>
impl<'src> UnsafeUnpin for RegistryMut<'src>
impl<'src> UnwindSafe for RegistryMut<'src>
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