pub struct DeactivationFile { /* private fields */ }Implementations§
Source§impl DeactivationFile
impl DeactivationFile
pub fn open<P: AsRef<Path>>(path: P) -> Result<Self, Error>
pub fn log(&self) -> DeactivationLog
pub fn lookup(&self, user_id: u64) -> Option<Vec<Entry>>
pub fn status(&self, user_id: u64) -> Option<u32>
pub fn add(&self, user_id: u64, status: u32, observed: DateTime<Utc>)
pub fn add_all(&self, updates: HashMap<u64, (u32, DateTime<Utc>)>)
pub fn flush(&self) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for DeactivationFile
impl Clone for DeactivationFile
Source§fn clone(&self) -> DeactivationFile
fn clone(&self) -> DeactivationFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DeactivationFile
impl RefUnwindSafe for DeactivationFile
impl Send for DeactivationFile
impl Sync for DeactivationFile
impl Unpin for DeactivationFile
impl UnsafeUnpin for DeactivationFile
impl UnwindSafe for DeactivationFile
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