pub struct CommandContexts<'a> { /* private fields */ }Expand description
Transport envelope with one independently optional facet slot.
Implementations§
Source§impl<'a> CommandContexts<'a>
impl<'a> CommandContexts<'a>
pub fn empty() -> Self
pub fn into_parts(self) -> ContextParts<'a>
pub fn with_session(self, value: &'a mut dyn CommandSessionContext) -> Self
pub fn with_model(self, value: &'a mut dyn CommandModelContext) -> Self
pub fn with_cost(self, value: &'a mut dyn CommandCostContext) -> Self
pub fn with_mode_policy( self, value: &'a mut dyn CommandModePolicyContext, ) -> Self
pub fn with_system_prompt( self, value: &'a mut dyn CommandSystemPromptContext, ) -> Self
pub fn with_skills(self, value: &'a mut dyn CommandSkillsContext) -> Self
pub fn with_workspace(self, value: &'a mut dyn CommandWorkspaceContext) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CommandContexts<'a>
impl<'a> !Send for CommandContexts<'a>
impl<'a> !Sync for CommandContexts<'a>
impl<'a> !UnwindSafe for CommandContexts<'a>
impl<'a> Freeze for CommandContexts<'a>
impl<'a> Unpin for CommandContexts<'a>
impl<'a> UnsafeUnpin for CommandContexts<'a>
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