pub struct OpencodeGoUsageStore;Implementations§
Source§impl OpencodeGoUsageStore
impl OpencodeGoUsageStore
Sourcepub fn fetch_usage() -> Result<OpencodeGoUsageSnapshot, OpencodeGoUsageError>
pub fn fetch_usage() -> Result<OpencodeGoUsageSnapshot, OpencodeGoUsageError>
§Errors
Returns an error when the local SQLite history cannot be copied, read,
or parsed.
Sourcepub fn fetch_usage_from_path_at(
db_path: &Path,
now: DateTime<Utc>,
) -> Result<OpencodeGoUsageSnapshot, OpencodeGoUsageError>
pub fn fetch_usage_from_path_at( db_path: &Path, now: DateTime<Utc>, ) -> Result<OpencodeGoUsageSnapshot, OpencodeGoUsageError>
§Errors
Returns an error when the local SQLite history cannot be copied, read,
or parsed.
Auto Trait Implementations§
impl Freeze for OpencodeGoUsageStore
impl RefUnwindSafe for OpencodeGoUsageStore
impl Send for OpencodeGoUsageStore
impl Sync for OpencodeGoUsageStore
impl Unpin for OpencodeGoUsageStore
impl UnsafeUnpin for OpencodeGoUsageStore
impl UnwindSafe for OpencodeGoUsageStore
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