pub struct PackInstall {
pub runtime: Box<dyn PackRuntime>,
pub resolver: Option<Box<dyn PackByIdResolver>>,
pub dispatch_hook: Option<Arc<dyn DispatchHook>>,
}Expand description
Output of PackFactory::create_install — bundles the pack runtime with
its optional by-ID resolver and dispatch hook so a factory can hand back
all three built from one shared instance (see BrainPackFactory for why
this matters: the dispatch hook must observe the same state the runtime
mutates, not a second unrelated instance).
Fields§
§runtime: Box<dyn PackRuntime>The pack runtime, registered into the builder’s pack list.
resolver: Option<Box<dyn PackByIdResolver>>Optional by-ID resolver, registered when present.
dispatch_hook: Option<Arc<dyn DispatchHook>>Optional post-dispatch observer, wired via VerbRegistryBuilder::with_dispatch_hook.
Auto Trait Implementations§
impl !RefUnwindSafe for PackInstall
impl !UnwindSafe for PackInstall
impl Forget for PackInstall
impl Freeze for PackInstallwhere
*const dyn PackRuntime is !null: Freeze,
PhantomData<dyn PackRuntime>: Freeze,
*const dyn PackByIdResolver is !null: Freeze,
PhantomData<dyn PackByIdResolver>: Freeze,
*const ArcInner<dyn DispatchHook> is !null: Freeze,
PhantomData<ArcInner<dyn DispatchHook>>: Freeze,
impl Move for PackInstall
impl Send for PackInstallwhere
BoxRaw<dyn PackRuntime>: Send,
BoxRaw<dyn PackByIdResolver>: Send,
Arc<dyn DispatchHook>: Send,
impl Sync for PackInstallwhere
BoxRaw<dyn PackRuntime>: Sync,
BoxRaw<dyn PackByIdResolver>: Sync,
Arc<dyn DispatchHook>: Sync,
impl Unpin for PackInstall
impl UnsafeUnpin for PackInstallwhere
*const dyn PackRuntime is !null: UnsafeUnpin,
PhantomData<dyn PackRuntime>: UnsafeUnpin,
*const dyn PackByIdResolver is !null: UnsafeUnpin,
PhantomData<dyn PackByIdResolver>: UnsafeUnpin,
*const ArcInner<dyn DispatchHook> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn DispatchHook>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more