pub struct MemorySpawnCustomizer { /* private fields */ }Expand description
Per-spawn memory customizer for classic (roster-less) mobs. One instance
serves the whole mob runtime; recorder dispatchers are re-created per
spawn, so the tool surface stays restore-safe exactly like the
identity-first customize_build path.
Implementations§
Source§impl MemorySpawnCustomizer
impl MemorySpawnCustomizer
pub fn new( provider: Arc<dyn AgentMemoryProvider>, config: AgentMemoryConfig, ) -> Self
Trait Implementations§
Source§impl SpawnMemberCustomizer for MemorySpawnCustomizer
impl SpawnMemberCustomizer for MemorySpawnCustomizer
fn customize_spawn( &self, ctx: &SpawnCustomizationContext, spec: &mut SpawnMemberSpec, ) -> Result<(), MobError>
Auto Trait Implementations§
impl !RefUnwindSafe for MemorySpawnCustomizer
impl !UnwindSafe for MemorySpawnCustomizer
impl Freeze for MemorySpawnCustomizer
impl Send for MemorySpawnCustomizer
impl Sync for MemorySpawnCustomizer
impl Unpin for MemorySpawnCustomizer
impl UnsafeUnpin for MemorySpawnCustomizer
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
impl<T> CoreExecutorTurnFinalizationGuard for Twhere
T: Send,
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