Struct hyper_scripter::script_repo::helper::RepoEntry
source · [−]pub struct RepoEntry<'b> { /* private fields */ }
Implementations
sourceimpl<'b> RepoEntry<'b>
impl<'b> RepoEntry<'b>
sourcepub async fn update<F: FnOnce(&mut ScriptInfo)>(
&mut self,
handler: F
) -> Result<i64>
pub async fn update<F: FnOnce(&mut ScriptInfo)>(
&mut self,
handler: F
) -> Result<i64>
回傳值為「上一筆記錄到的事件的 id」
pub fn into_inner(self) -> &'b ScriptInfo
pub fn get_env(&self) -> &DBEnv
Methods from Deref<Target = &'b mut ScriptInfo>
pub fn cp(&self, new_name: ScriptName) -> Self
sourcepub fn last_major_time(&self) -> NaiveDateTime
pub fn last_major_time(&self) -> NaiveDateTime
major time
即不包含 read
和 miss
事件的時間,但包含 humble
sourcepub fn last_time(&self) -> NaiveDateTime
pub fn last_time(&self) -> NaiveDateTime
不包含 humble
pub fn file_path_fallback(&self) -> PathBuf
Trait Implementations
sourceimpl<'b> Deref for RepoEntry<'b>
impl<'b> Deref for RepoEntry<'b>
type Target = &'b mut ScriptInfo
type Target = &'b mut ScriptInfo
The resulting type after dereferencing.
Auto Trait Implementations
impl<'b> !RefUnwindSafe for RepoEntry<'b>
impl<'b> Send for RepoEntry<'b>
impl<'b> Sync for RepoEntry<'b>
impl<'b> Unpin for RepoEntry<'b>
impl<'b> !UnwindSafe for RepoEntry<'b>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more