pub struct CommandLineComponents(pub Vec<AcpAgent>);Expand description
Wrapper for command-line component lists that can serve as either proxies-only (for proxy mode) or proxies+agent (for agent mode).
This exists because AcpAgent implements Component<L> for all L,
so a Vec<AcpAgent> can be used as either a list of proxies or as
proxies + final agent depending on the conductor mode.
Tuple Fields§
§0: Vec<AcpAgent>Trait Implementations§
Source§impl InstantiateProxies for CommandLineComponents
impl InstantiateProxies for CommandLineComponents
Source§fn instantiate_proxies(
self: Box<Self>,
req: InitializeRequest,
) -> BoxFuture<'static, Result<(InitializeRequest, Vec<DynComponent<ProxyToConductor>>), Error>>
fn instantiate_proxies( self: Box<Self>, req: InitializeRequest, ) -> BoxFuture<'static, Result<(InitializeRequest, Vec<DynComponent<ProxyToConductor>>), Error>>
Instantiate proxy components based on the Initialize request. Read more
Source§impl InstantiateProxiesAndAgent for CommandLineComponents
impl InstantiateProxiesAndAgent for CommandLineComponents
Source§fn instantiate_proxies_and_agent(
self: Box<Self>,
req: InitializeRequest,
) -> BoxFuture<'static, Result<(InitializeRequest, Vec<DynComponent<ProxyToConductor>>, DynComponent<AgentToClient>), Error>>
fn instantiate_proxies_and_agent( self: Box<Self>, req: InitializeRequest, ) -> BoxFuture<'static, Result<(InitializeRequest, Vec<DynComponent<ProxyToConductor>>, DynComponent<AgentToClient>), Error>>
Instantiate proxy and agent components based on the Initialize request. Read more
Auto Trait Implementations§
impl Freeze for CommandLineComponents
impl !RefUnwindSafe for CommandLineComponents
impl Send for CommandLineComponents
impl Sync for CommandLineComponents
impl Unpin for CommandLineComponents
impl !UnwindSafe for CommandLineComponents
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