Struct hyper_scripter_historian::Historian
source · [−]pub struct Historian { /* private fields */ }
Implementations
sourceimpl Historian
impl Historian
pub async fn close(self)
pub async fn new(dir_path: PathBuf) -> Result<Self, DBError>
pub async fn do_migrate(dir_path: &Path) -> Result<(), MigrateError>
pub async fn remove(&self, script_id: i64) -> Result<(), DBError>
pub async fn record(&self, event: &Event<'_>) -> Result<i64, DBError>
pub async fn previous_args(
&self,
id: i64,
dir: Option<&Path>
) -> Result<Option<String>, DBError>
pub async fn previous_args_list(
&self,
ids: &[i64],
limit: u32,
offset: u32,
dir: Option<&Path>
) -> Result<impl ExactSizeIterator<Item = (i64, String)>, DBError>
pub async fn ignore_args_by_id(
&self,
event_id: NonZeroU64
) -> Result<Option<LastTimeRecord>, DBError>
pub async fn humble_args_by_id(
&self,
event_id: NonZeroU64
) -> Result<Option<LastTimeRecord>, DBError>
pub async fn ignore_args_range(
&self,
ids: &[i64],
min: NonZeroU64,
max: Option<NonZeroU64>
) -> Result<Vec<LastTimeRecord>, DBError>
pub async fn amend_args_by_id(
&self,
event_id: NonZeroU64,
args: &str
) -> Result<(), DBError>
pub async fn tidy(&self, script_id: i64) -> Result<(), DBError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Historian
impl Send for Historian
impl Sync for Historian
impl Unpin for Historian
impl UnwindSafe for Historian
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