pub struct SafeBox { /* private fields */ }Implementations§
source§impl SafeBox
impl SafeBox
pub fn new(p: impl AsRef<Path>) -> Self
pub fn verify( &self, username: &str, password: &str, ) -> Result<(), Box<dyn Error>>
pub fn update( &self, src: &str, dst: &str, old: &str, ) -> Result<(), Box<dyn Error>>
pub fn create( &self, username: &str, password: &str, ) -> Result<(), Box<dyn Error>>
pub fn delete( &self, username: &str, password: &str, ) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for SafeBox
impl !RefUnwindSafe for SafeBox
impl Send for SafeBox
impl !Sync for SafeBox
impl Unpin for SafeBox
impl !UnwindSafe for SafeBox
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