pub struct DataLoader { /* private fields */ }Expand description
Data loader for OpenCode usage data.
Trait Implementations§
Source§impl ProviderDataLoader for DataLoader
impl ProviderDataLoader for DataLoader
Source§fn new<'async_trait>() -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
fn new<'async_trait>() -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
Create a new data loader, discovering data directories.
Source§fn load_entries(
&self,
) -> Pin<Box<dyn Stream<Item = Result<UsageEntry>> + Send + '_>>
fn load_entries( &self, ) -> Pin<Box<dyn Stream<Item = Result<UsageEntry>> + Send + '_>>
Stream all usage entries from the provider’s data files.
Auto Trait Implementations§
impl Freeze for DataLoader
impl RefUnwindSafe for DataLoader
impl Send for DataLoader
impl Sync for DataLoader
impl Unpin for DataLoader
impl UnsafeUnpin for DataLoader
impl UnwindSafe for DataLoader
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