Skip to main content

PreparedExtensions

Struct PreparedExtensions 

Source
pub struct PreparedExtensions {
    pub extension_session: ExtensionSession,
    /* private fields */
}
Expand description

Extensions are loaded exactly once before model resolution. Their action host remains unbound until the harness and authenticated catalog exist.

Fields§

§extension_session: ExtensionSession

Auto Trait Implementations§

§

impl !RefUnwindSafe for PreparedExtensions

§

impl !UnwindSafe for PreparedExtensions

§

impl Forget for PreparedExtensions

§

impl Freeze for PreparedExtensions
where *const ArcInner<PluginCleanupLedger> is !null: Freeze, PhantomData<ArcInner<PluginCleanupLedger>>: Freeze, *const ArcInner<SharedPluginImages> is !null: Freeze, PhantomData<ArcInner<SharedPluginImages>>: Freeze, *const ArcInner<Vec<Lease>> is !null: Freeze, PhantomData<ArcInner<Vec<Lease>>>: Freeze, *const u8 is !null: Freeze, PhantomData<u8>: Freeze, PhantomData<PathBuf>: Freeze, PhantomData<String>: Freeze, PhantomData<(PathBuf, String, String)>: Freeze, *const LeafNode<String, PromptCommand> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(String, PromptCommand)>>: Freeze, PhantomData<Skill>: Freeze, PhantomData<Value>: Freeze, PhantomData<usize>: Freeze, PhantomData<Bucket<String, Value>>: Freeze, *const ArcInner<RwLock<SessionBinding>> is !null: Freeze, PhantomData<ArcInner<RwLock<SessionBinding>>>: Freeze, *const ArcInner<dyn IdGenerator> is !null: Freeze, PhantomData<ArcInner<dyn IdGenerator>>: Freeze, *const ArcInner<PluginKeepalive> is !null: Freeze, PhantomData<ArcInner<PluginKeepalive>>: Freeze, *const ArcInner<RegistrySnapshot> is !null: Freeze, PhantomData<ArcInner<RegistrySnapshot>>: Freeze, *const ArcInner<ActionBridge> is !null: Freeze, PhantomData<ArcInner<ActionBridge>>: Freeze, *const ArcInner<SuggestService> is !null: Freeze, PhantomData<ArcInner<SuggestService>>: Freeze, *const ArcInner<Handle> is !null: Freeze, PhantomData<ArcInner<Handle>>: Freeze, *const ArcInner<Handle> is !null: Freeze, PhantomData<ArcInner<Handle>>: Freeze, *const ArcInner<RwLock<ToolCallContextState>> is !null: Freeze, PhantomData<ArcInner<RwLock<ToolCallContextState>>>: Freeze, *const ArcInner<AgentToolCallContext> is !null: Freeze, PhantomData<ArcInner<AgentToolCallContext>>: Freeze, *const ArcInner<HarnessActionHost> is !null: Freeze, PhantomData<ArcInner<HarnessActionHost>>: Freeze, *const ArcInner<OnceLock<WeakAgentHarness>> is !null: Freeze, PhantomData<ArcInner<OnceLock<WeakAgentHarness>>>: Freeze, *const ArcInner<Mutex<Option<UnboundedSender<()>>>> is !null: Freeze, PhantomData<ArcInner<Mutex<Option<UnboundedSender<()>>>>>: Freeze, *const ArcInner<Mutex<UiDialogState>> is !null: Freeze, PhantomData<ArcInner<Mutex<UiDialogState>>>: Freeze, *const ArcInner<Mutex<BTreeMap<String, String>>> is !null: Freeze, PhantomData<ArcInner<Mutex<BTreeMap<String, String>>>>: Freeze, *const ArcInner<Mutex<BTreeMap<(u64, String), (ExtensionPanel, bool)>>> is !null: Freeze, PhantomData<ArcInner<Mutex<BTreeMap<(u64, String), (ExtensionPanel, bool)>>>>: Freeze, *const ArcInner<Atomic<u64>> is !null: Freeze, PhantomData<ArcInner<Atomic<u64>>>: Freeze, *const ArcInner<Mutex<VecDeque<EditorTextEdit>>> is !null: Freeze, PhantomData<ArcInner<Mutex<VecDeque<EditorTextEdit>>>>: Freeze, *const ArcInner<Mutex<EditorDraft>> is !null: Freeze, PhantomData<ArcInner<Mutex<EditorDraft>>>: Freeze, *const ArcInner<dyn FileSystem> is !null: Freeze, PhantomData<ArcInner<dyn FileSystem>>: Freeze, *const ArcInner<Mutex<ResidentState>> is !null: Freeze, PhantomData<ArcInner<Mutex<ResidentState>>>: Freeze, *const ArcInner<dyn Clock> is !null: Freeze, PhantomData<ArcInner<dyn Clock>>: Freeze, *const ArcInner<Mutex<()>> is !null: Freeze, PhantomData<ArcInner<Mutex<()>>>: Freeze, *const ArcInner<Mutex<Option<Box<dyn AppendFile>>>> is !null: Freeze, PhantomData<ArcInner<Mutex<Option<Box<dyn AppendFile>>>>>: Freeze, *const ArcInner<Mutex<Option<Box<dyn WriterLease>>>> is !null: Freeze, PhantomData<ArcInner<Mutex<Option<Box<dyn WriterLease>>>>>: Freeze, *const ArcInner<Atomic<bool>> is !null: Freeze, PhantomData<ArcInner<Atomic<bool>>>: Freeze, *const ArcInner<Mutex<State>> is !null: Freeze, PhantomData<ArcInner<Mutex<State>>>: Freeze, *const ArcInner<Mutex<Option<[u8; 32]>>> is !null: Freeze, PhantomData<ArcInner<Mutex<Option<[u8; 32]>>>>: Freeze, *const ArcInner<Mutex<Option<ReplaySourceIdentity>>> is !null: Freeze, PhantomData<ArcInner<Mutex<Option<ReplaySourceIdentity>>>>: Freeze, *const ArcInner<Mutex<Option<PendingRepair>>> is !null: Freeze, PhantomData<ArcInner<Mutex<Option<PendingRepair>>>>: Freeze, *const ArcInner<Mutex<Option<Source>>> is !null: Freeze, PhantomData<ArcInner<Mutex<Option<Source>>>>: Freeze, *const LeafNode<String, Value> is !null: Freeze, PhantomData<Box<(String, Value)>>: Freeze,

§

impl Move for PreparedExtensions

§

impl Send for PreparedExtensions
where Arc<PluginCleanupLedger>: Send, Arc<SharedPluginImages>: Send, Arc<Vec<Lease>>: Send, RawVecInner: Send, NodeRef<Owned, String, PromptCommand, LeafOrInternal>: Send, BoxRaw<(String, PromptCommand)>: Send, RawTable<usize>: Send, Arc<RwLock<SessionBinding>>: Send, Arc<dyn IdGenerator>: Send, Arc<PluginKeepalive>: Send, Arc<RegistrySnapshot>: Send, Arc<ActionBridge>: Send, Arc<SuggestService>: Send, Arc<Handle>: Send, Arc<Handle>: Send, Arc<RwLock<ToolCallContextState>>: Send, Arc<AgentToolCallContext>: Send, Arc<HarnessActionHost>: Send, Arc<OnceLock<WeakAgentHarness>>: Send, Arc<Mutex<Option<UnboundedSender<()>>>>: Send, Arc<Mutex<UiDialogState>>: Send, Arc<Mutex<BTreeMap<String, String>>>: Send, Arc<Mutex<BTreeMap<(u64, String), (ExtensionPanel, bool)>>>: Send, Arc<Atomic<u64>>: Send, Arc<Mutex<VecDeque<EditorTextEdit>>>: Send, Arc<Mutex<EditorDraft>>: Send, Arc<dyn FileSystem>: Send, Arc<Mutex<ResidentState>>: Send, Arc<dyn Clock>: Send, Arc<Mutex<()>>: Send, Arc<Mutex<Option<Box<dyn AppendFile>>>>: Send, Arc<Mutex<Option<Box<dyn WriterLease>>>>: Send, Arc<Atomic<bool>>: Send, Arc<Mutex<State>>: Send, Arc<Mutex<Option<[u8; 32]>>>: Send, Arc<Mutex<Option<ReplaySourceIdentity>>>: Send, Arc<Mutex<Option<PendingRepair>>>: Send, Arc<Mutex<Option<Source>>>: Send, NodeRef<Owned, String, Value, LeafOrInternal>: Send, BoxRaw<(String, Value)>: Send,

§

impl Sync for PreparedExtensions
where Arc<PluginCleanupLedger>: Sync, Arc<SharedPluginImages>: Sync, Arc<Vec<Lease>>: Sync, RawVecInner: Sync, NodeRef<Owned, String, PromptCommand, LeafOrInternal>: Sync, BoxRaw<(String, PromptCommand)>: Sync, RawTable<usize>: Sync, Arc<RwLock<SessionBinding>>: Sync, Arc<dyn IdGenerator>: Sync, Arc<PluginKeepalive>: Sync, Arc<RegistrySnapshot>: Sync, Arc<ActionBridge>: Sync, Arc<SuggestService>: Sync, Arc<Handle>: Sync, Arc<Handle>: Sync, Arc<RwLock<ToolCallContextState>>: Sync, Arc<AgentToolCallContext>: Sync, Arc<HarnessActionHost>: Sync, Arc<OnceLock<WeakAgentHarness>>: Sync, Arc<Mutex<Option<UnboundedSender<()>>>>: Sync, Arc<Mutex<UiDialogState>>: Sync, Arc<Mutex<BTreeMap<String, String>>>: Sync, Arc<Mutex<BTreeMap<(u64, String), (ExtensionPanel, bool)>>>: Sync, Arc<Atomic<u64>>: Sync, Arc<Mutex<VecDeque<EditorTextEdit>>>: Sync, Arc<Mutex<EditorDraft>>: Sync, Arc<dyn FileSystem>: Sync, Arc<Mutex<ResidentState>>: Sync, Arc<dyn Clock>: Sync, Arc<Mutex<()>>: Sync, Arc<Mutex<Option<Box<dyn AppendFile>>>>: Sync, Arc<Mutex<Option<Box<dyn WriterLease>>>>: Sync, Arc<Atomic<bool>>: Sync, Arc<Mutex<State>>: Sync, Arc<Mutex<Option<[u8; 32]>>>: Sync, Arc<Mutex<Option<ReplaySourceIdentity>>>: Sync, Arc<Mutex<Option<PendingRepair>>>: Sync, Arc<Mutex<Option<Source>>>: Sync, NodeRef<Owned, String, Value, LeafOrInternal>: Sync, BoxRaw<(String, Value)>: Sync,

§

impl Unpin for PreparedExtensions
where Arc<PluginCleanupLedger>: Unpin, Arc<SharedPluginImages>: Unpin, Arc<Vec<Lease>>: Unpin, *const u8 is !null: Unpin, *const LeafNode<String, PromptCommand> is !null: Unpin, Box<(String, PromptCommand)>: Unpin, Arc<RwLock<SessionBinding>>: Unpin, Arc<dyn IdGenerator>: Unpin, Arc<PluginKeepalive>: Unpin, Arc<RegistrySnapshot>: Unpin, Arc<ActionBridge>: Unpin, Arc<SuggestService>: Unpin, Arc<Handle>: Unpin, Arc<Handle>: Unpin, Arc<RwLock<ToolCallContextState>>: Unpin, Arc<AgentToolCallContext>: Unpin, Arc<HarnessActionHost>: Unpin, Arc<OnceLock<WeakAgentHarness>>: Unpin, Arc<Mutex<Option<UnboundedSender<()>>>>: Unpin, Arc<Mutex<UiDialogState>>: Unpin, Arc<Mutex<BTreeMap<String, String>>>: Unpin, Arc<Mutex<BTreeMap<(u64, String), (ExtensionPanel, bool)>>>: Unpin, Arc<Atomic<u64>>: Unpin, Arc<Mutex<VecDeque<EditorTextEdit>>>: Unpin, Arc<Mutex<EditorDraft>>: Unpin, Arc<dyn FileSystem>: Unpin, Arc<Mutex<ResidentState>>: Unpin, Arc<dyn Clock>: Unpin, Arc<Mutex<()>>: Unpin, Arc<Mutex<Option<Box<dyn AppendFile>>>>: Unpin, Arc<Mutex<Option<Box<dyn WriterLease>>>>: Unpin, Arc<Atomic<bool>>: Unpin, Arc<Mutex<State>>: Unpin, Arc<Mutex<Option<[u8; 32]>>>: Unpin, Arc<Mutex<Option<ReplaySourceIdentity>>>: Unpin, Arc<Mutex<Option<PendingRepair>>>: Unpin, Arc<Mutex<Option<Source>>>: Unpin, *const LeafNode<String, Value> is !null: Unpin, Box<(String, Value)>: Unpin,

§

impl UnsafeUnpin for PreparedExtensions
where *const ArcInner<PluginCleanupLedger> is !null: UnsafeUnpin, PhantomData<ArcInner<PluginCleanupLedger>>: UnsafeUnpin, *const ArcInner<SharedPluginImages> is !null: UnsafeUnpin, PhantomData<ArcInner<SharedPluginImages>>: UnsafeUnpin, *const ArcInner<Vec<Lease>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<Lease>>>: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, PhantomData<PathBuf>: UnsafeUnpin, PhantomData<String>: UnsafeUnpin, PhantomData<(PathBuf, String, String)>: UnsafeUnpin, *const LeafNode<String, PromptCommand> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(String, PromptCommand)>>: UnsafeUnpin, PhantomData<Skill>: UnsafeUnpin, PhantomData<Value>: UnsafeUnpin, PhantomData<usize>: UnsafeUnpin, PhantomData<Bucket<String, Value>>: UnsafeUnpin, *const ArcInner<RwLock<SessionBinding>> is !null: UnsafeUnpin, PhantomData<ArcInner<RwLock<SessionBinding>>>: UnsafeUnpin, *const ArcInner<dyn IdGenerator> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn IdGenerator>>: UnsafeUnpin, *const ArcInner<PluginKeepalive> is !null: UnsafeUnpin, PhantomData<ArcInner<PluginKeepalive>>: UnsafeUnpin, *const ArcInner<RegistrySnapshot> is !null: UnsafeUnpin, PhantomData<ArcInner<RegistrySnapshot>>: UnsafeUnpin, *const ArcInner<ActionBridge> is !null: UnsafeUnpin, PhantomData<ArcInner<ActionBridge>>: UnsafeUnpin, *const ArcInner<SuggestService> is !null: UnsafeUnpin, PhantomData<ArcInner<SuggestService>>: UnsafeUnpin, *const ArcInner<Handle> is !null: UnsafeUnpin, PhantomData<ArcInner<Handle>>: UnsafeUnpin, *const ArcInner<Handle> is !null: UnsafeUnpin, PhantomData<ArcInner<Handle>>: UnsafeUnpin, *const ArcInner<RwLock<ToolCallContextState>> is !null: UnsafeUnpin, PhantomData<ArcInner<RwLock<ToolCallContextState>>>: UnsafeUnpin, *const ArcInner<AgentToolCallContext> is !null: UnsafeUnpin, PhantomData<ArcInner<AgentToolCallContext>>: UnsafeUnpin, *const ArcInner<HarnessActionHost> is !null: UnsafeUnpin, PhantomData<ArcInner<HarnessActionHost>>: UnsafeUnpin, *const ArcInner<OnceLock<WeakAgentHarness>> is !null: UnsafeUnpin, PhantomData<ArcInner<OnceLock<WeakAgentHarness>>>: UnsafeUnpin, *const ArcInner<Mutex<Option<UnboundedSender<()>>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Option<UnboundedSender<()>>>>>: UnsafeUnpin, *const ArcInner<Mutex<UiDialogState>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<UiDialogState>>>: UnsafeUnpin, *const ArcInner<Mutex<BTreeMap<String, String>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<BTreeMap<String, String>>>>: UnsafeUnpin, *const ArcInner<Mutex<BTreeMap<(u64, String), (ExtensionPanel, bool)>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<BTreeMap<(u64, String), (ExtensionPanel, bool)>>>>: UnsafeUnpin, *const ArcInner<Atomic<u64>> is !null: UnsafeUnpin, PhantomData<ArcInner<Atomic<u64>>>: UnsafeUnpin, *const ArcInner<Mutex<VecDeque<EditorTextEdit>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<VecDeque<EditorTextEdit>>>>: UnsafeUnpin, *const ArcInner<Mutex<EditorDraft>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<EditorDraft>>>: UnsafeUnpin, *const ArcInner<dyn FileSystem> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn FileSystem>>: UnsafeUnpin, *const ArcInner<Mutex<ResidentState>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<ResidentState>>>: UnsafeUnpin, *const ArcInner<dyn Clock> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn Clock>>: UnsafeUnpin, *const ArcInner<Mutex<()>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<()>>>: UnsafeUnpin, *const ArcInner<Mutex<Option<Box<dyn AppendFile>>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Option<Box<dyn AppendFile>>>>>: UnsafeUnpin, *const ArcInner<Mutex<Option<Box<dyn WriterLease>>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Option<Box<dyn WriterLease>>>>>: UnsafeUnpin, *const ArcInner<Atomic<bool>> is !null: UnsafeUnpin, PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin, *const ArcInner<Mutex<State>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<State>>>: UnsafeUnpin, *const ArcInner<Mutex<Option<[u8; 32]>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Option<[u8; 32]>>>>: UnsafeUnpin, *const ArcInner<Mutex<Option<ReplaySourceIdentity>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Option<ReplaySourceIdentity>>>>: UnsafeUnpin, *const ArcInner<Mutex<Option<PendingRepair>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Option<PendingRepair>>>>: UnsafeUnpin, *const ArcInner<Mutex<Option<Source>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Option<Source>>>>: UnsafeUnpin, *const LeafNode<String, Value> is !null: UnsafeUnpin, PhantomData<Box<(String, Value)>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> MaybeSendSync for T

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more