pub struct AtomiseToolHandler {
pub atomiser: Arc<Atomiser>,
pub tier: FeatureTier,
}Expand description
Handler-side bundle. Keeps the Atomiser (the WT-1-B engine)
behind an Arc so the dispatcher can construct one at server boot
and re-use it across every memory_atomise call.
tier is the daemon’s resolved feature tier. The handler consults
it BEFORE asking the atomiser to do any work so the keyword-tier
short-circuit doesn’t need a DB read.
Fields§
§atomiser: Arc<Atomiser>§tier: FeatureTierDaemon’s resolved feature tier. Retained as defense-in-depth
so a future caller that wires the handler outside the
MCP-server context (e.g. an HTTP daemon surface) still has the
tier available without re-plumbing the resolver. The MCP path
passes its own tier to handle_atomise which short-
circuits BEFORE consulting the handler, so the two values are
kept in sync by construction.
Implementations§
Source§impl AtomiseToolHandler
impl AtomiseToolHandler
Sourcepub fn new(atomiser: Arc<Atomiser>, tier: FeatureTier) -> Self
pub fn new(atomiser: Arc<Atomiser>, tier: FeatureTier) -> Self
Construct a handler with the supplied atomiser and tier.
Auto Trait Implementations§
impl !RefUnwindSafe for AtomiseToolHandler
impl !UnwindSafe for AtomiseToolHandler
impl Freeze for AtomiseToolHandler
impl Send for AtomiseToolHandler
impl Sync for AtomiseToolHandler
impl Unpin for AtomiseToolHandler
impl UnsafeUnpin for AtomiseToolHandler
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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>
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>
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