pub struct ContextLoader { /* private fields */ }Implementations§
Source§impl ContextLoader
impl ContextLoader
pub fn new() -> Self
pub fn with_source(self, source: impl ContextSource + 'static) -> Self
pub async fn load(&self) -> Result<Vec<Item>, ContextError>
Trait Implementations§
Source§impl Default for ContextLoader
impl Default for ContextLoader
Source§fn default() -> ContextLoader
fn default() -> ContextLoader
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextLoader
impl !RefUnwindSafe for ContextLoader
impl Send for ContextLoader
impl Sync for ContextLoader
impl Unpin for ContextLoader
impl UnsafeUnpin for ContextLoader
impl !UnwindSafe for ContextLoader
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