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 Freeze for PackInstall
impl Send for PackInstall
impl Sync for PackInstall
impl Unpin for PackInstall
impl UnsafeUnpin for PackInstall
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
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