pub struct AIAdapter { /* private fields */ }Expand description
High-performance AI adapter for binary protocol communication.
Implementations§
Source§impl AIAdapter
impl AIAdapter
Sourcepub fn new(config: Config) -> Result<Self, String>
pub fn new(config: Config) -> Result<Self, String>
Create a new AI adapter with the given configuration.
Sourcepub fn process_command(&mut self, cmd: AICommand) -> Result<AICommand, String>
pub fn process_command(&mut self, cmd: AICommand) -> Result<AICommand, String>
Process an AI command and return a response.
Sourcepub fn update_merkle_tree(&mut self) -> Result<(), String>
pub fn update_merkle_tree(&mut self) -> Result<(), String>
Force immediate Merkle tree update for dirty blocks.
The incremental Merkle update is not implemented yet. When blocks are dirty this returns an explicit error instead of clearing the dirty set and pretending the tree was updated — a stale Merkle root must never be reported as freshly verified.
Auto Trait Implementations§
impl Freeze for AIAdapter
impl RefUnwindSafe for AIAdapter
impl Send for AIAdapter
impl Sync for AIAdapter
impl Unpin for AIAdapter
impl UnsafeUnpin for AIAdapter
impl UnwindSafe for AIAdapter
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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