pub struct ContextAssembler;Expand description
Stateless coordinator for parallel context fetching.
All logic is in ContextAssembler::gather. No state is stored on this type.
Implementations§
Source§impl ContextAssembler
impl ContextAssembler
Sourcepub async fn gather(
input: &ContextAssemblyInput<'_>,
) -> Result<PreparedContext, AssemblerError>
pub async fn gather( input: &ContextAssemblyInput<'_>, ) -> Result<PreparedContext, AssemblerError>
Gather all context sources concurrently and return a PreparedContext.
Returns an empty PreparedContext immediately when context_manager.budget is None.
§Errors
Propagates errors from any async fetch operation.
Auto Trait Implementations§
impl Freeze for ContextAssembler
impl RefUnwindSafe for ContextAssembler
impl Send for ContextAssembler
impl Sync for ContextAssembler
impl Unpin for ContextAssembler
impl UnsafeUnpin for ContextAssembler
impl UnwindSafe for ContextAssembler
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