pub struct AcpServer { /* private fields */ }Expand description
Inbound ACP projection of one SDK runtime.
Implementations§
Source§impl AcpServer
impl AcpServer
Sourcepub async fn new(
runtime: Arc<dyn SdkRuntime>,
) -> Result<Arc<AcpServer>, SdkError>
pub async fn new( runtime: Arc<dyn SdkRuntime>, ) -> Result<Arc<AcpServer>, SdkError>
Wrap an existing SDK runtime. Multiple frontends may wrap/subscribe to the same runtime; the runtime, not this adapter, remains authoritative.
Sourcepub async fn new_with_profile(
runtime: Arc<dyn SdkRuntime>,
compatibility: AcpCompatibilityProfile,
) -> Result<Arc<AcpServer>, SdkError>
pub async fn new_with_profile( runtime: Arc<dyn SdkRuntime>, compatibility: AcpCompatibilityProfile, ) -> Result<Arc<AcpServer>, SdkError>
Wrap an existing SDK runtime with one version-pinned stock-client compatibility profile. The profile affects only ACP projection; the supplied runtime remains the sole owner of continuation and state.
Sourcepub fn runtime(&self) -> &Arc<dyn SdkRuntime> ⓘ
pub fn runtime(&self) -> &Arc<dyn SdkRuntime> ⓘ
Canonical runtime shared by this ACP projection and other frontends.
Auto Trait Implementations§
impl !Freeze for AcpServer
impl !RefUnwindSafe for AcpServer
impl !UnwindSafe for AcpServer
impl Send for AcpServer
impl Sync for AcpServer
impl Unpin for AcpServer
impl UnsafeUnpin for AcpServer
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