pub struct AgentOnly<A>(pub A);Expand description
Wrapper to convert a single agent component (no proxies) into InstantiateProxiesAndAgent.
Tuple Fields§
§0: ATrait Implementations§
Source§impl<A: Component<AgentToClient> + 'static> InstantiateProxiesAndAgent for AgentOnly<A>
impl<A: Component<AgentToClient> + 'static> InstantiateProxiesAndAgent for AgentOnly<A>
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<A> Freeze for AgentOnly<A>where
A: Freeze,
impl<A> RefUnwindSafe for AgentOnly<A>where
A: RefUnwindSafe,
impl<A> Send for AgentOnly<A>where
A: Send,
impl<A> Sync for AgentOnly<A>where
A: Sync,
impl<A> Unpin for AgentOnly<A>where
A: Unpin,
impl<A> UnwindSafe for AgentOnly<A>where
A: UnwindSafe,
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