pub struct IpcServer {
pub socket_path: String,
pub agent: Arc<Mutex<Agent>>,
pub tools: Arc<Mutex<ToolRegistry>>,
pub plugins: Arc<Mutex<PluginRegistry>>,
pub session: Arc<Mutex<Session>>,
}Fields§
§socket_path: String§agent: Arc<Mutex<Agent>>§tools: Arc<Mutex<ToolRegistry>>§plugins: Arc<Mutex<PluginRegistry>>§session: Arc<Mutex<Session>>Implementations§
Source§impl IpcServer
impl IpcServer
pub fn new(socket_path: impl Into<String>) -> Self
pub fn attach_agent(&self, agent: Agent)
pub fn attach_tools(&self, tools: ToolRegistry)
pub fn attach_plugins(&self, plugins: PluginRegistry)
pub fn attach_session(&self, session: Session)
pub fn run(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for IpcServer
impl !UnwindSafe for IpcServer
impl Freeze for IpcServer
impl Send for IpcServer
impl Sync for IpcServer
impl Unpin for IpcServer
impl UnsafeUnpin for IpcServer
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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