pub struct CoordinatedRuntime { /* private fields */ }Expand description
Shared transport-neutral owner of a runtime and its client leases.
A transport authenticates a request, validates its opaque client id, and
asks this object for a CoordinatedRuntimeClient. HTTP, ACP, local
embedding, and compatibility adapters therefore execute identical
authorization, takeover, and expiry behavior.
Implementations§
Source§impl CoordinatedRuntime
impl CoordinatedRuntime
Sourcepub fn new(runtime: Arc<dyn SdkRuntime>) -> Arc<Self> ⓘ
pub fn new(runtime: Arc<dyn SdkRuntime>) -> Arc<Self> ⓘ
Wrap one SDK runtime with the default controller lease duration.
Sourcepub fn with_lease_ttl(
runtime: Arc<dyn SdkRuntime>,
lease_ttl_ms: u64,
) -> Arc<Self> ⓘ
pub fn with_lease_ttl( runtime: Arc<dyn SdkRuntime>, lease_ttl_ms: u64, ) -> Arc<Self> ⓘ
Wrap one SDK runtime with an explicit lease duration. Tests and embedders use this to exercise deterministic expiry without sleeping.
Sourcepub fn client(
self: &Arc<Self>,
client_id: RuntimeClientId,
authorization: RuntimeAuthorization,
) -> Arc<CoordinatedRuntimeClient> ⓘ
pub fn client( self: &Arc<Self>, client_id: RuntimeClientId, authorization: RuntimeAuthorization, ) -> Arc<CoordinatedRuntimeClient> ⓘ
Bind an authenticated identity and exact permission set to this runtime. The returned client never owns the underlying runtime.
Auto Trait Implementations§
impl !Freeze for CoordinatedRuntime
impl !RefUnwindSafe for CoordinatedRuntime
impl !UnwindSafe for CoordinatedRuntime
impl Send for CoordinatedRuntime
impl Sync for CoordinatedRuntime
impl Unpin for CoordinatedRuntime
impl UnsafeUnpin for CoordinatedRuntime
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